[erlang-questions] Comma, semicolon. Aaaaa
Dustin Sallings
dustin@REDACTED
Tue Sep 18 01:46:57 CEST 2007
On Sep 17, 2007, at 16:31 , Lone Wolf wrote:
> What does this mean?
> Would some one please shed some light on it since I'm not a C guy?
> An example maybe?
>
> >>C: x > y ? e1, e2 : (e3, e4)
> Erlang: if x > y -> e1, e2 ; true -> e3, e4 end
>
> I didn't understand this example.
> Sorry guys but I didn't know anything in C language.
> Thanks for help.
(if (> x y) '(e1 e2) '(e3 e4))
--
Dustin Sallings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070917/fadc3e1f/attachment.htm>
More information about the erlang-questions
mailing list