Try/Cond

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Thu Oct 23 17:06:27 CEST 2003



-----Original Message-----
From: Joe Armstrong [mailto:joe@REDACTED]

> You might write it like this:
>
>	last([_|T]) -> last(T);
>	last([H])   -> H.
> 
> This version works because [...]

Errm... actually, it doesn't work, Joe.  ;-)

/Uffe



More information about the erlang-questions mailing list