« Return to Thread: comma vs andalso

Re: comma vs andalso

by Roberto Ostinelli :: Rate this Message:

Reply to Author | View in Thread


On 06/lug/09, at 14:19, Roberto Ostinelli wrote:

> foo(..) when (islist(X) == true ansalso (lists:nth(1,X) == 'test') -
> > ..

that would be

foo(..) when (islist(X) =:= true) ansalso (lists:nth(1,X) =:= 'test') -
 > ..

pardon me i was in python mode.

r.


________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org

 « Return to Thread: comma vs andalso