[erlang-questions] Why the output differs in these two erlang expression sequence in shell?
Greg
silver.surfertab@REDACTED
Thu Oct 5 12:57:16 CEST 2017
In Erlang shell why the following produces different result?
1> Total=15.
2> Calculate=fun(Number)-> Total=2*Number end.
3> Calculate(6).
**exception error: no match of right hand side value 12**
1> Calculate=fun(Number)-> Total=2*Number end.
2> Total=15.
3> Calculate(6).
12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171005/6318b8a4/attachment.htm>
More information about the erlang-questions
mailing list