Friday 15 August 2014

why erlang not supporting expressions like : mysum(32)(1) -


I'm new in Ealing, get a little query about implementing tasks - assumming defined a fun caterer Gone:

  mysum (X) - & gt; Fun (Y) - & gt; X + Y and   

then try to call like this

  mysum (32) (332)   

Error getting >

  * 1: Before Syntax Error: '('   

so I

  apply (32), [333]   

or

  M = MySm (32), M (333)   

Text "itemprop =" text ">

, Mysum returns a function. To satisfy the Elegant Parser, the evaluation must be attached within the bracket:

  (mysum (32)) (332)   

This spelling is obvious Your expression is not obscure because you know that MySum (32) is a function, but the types are resolved when running in the Erlang, so it does not have Parsar Know what is Mysum (32), it is hoping some help is here to know That's what it is: brackets, application or intermediate variables, but it could be operator or a separator.

No comments:

Post a Comment