In the older releases of Erlang, {Module, Function} was also treated as
a fun. While depriciated, it still works for backward compatibility reasons:
1> Fun = {io, format}, Fun("Hello~n").
Hello
ok
2>
Francesco
On 10/05/2010 17:31, Ivan Uemlianin wrote:
>>> So, to use a named (i.e., rather than anonymous) function in map, it
>>> seems necessary to use fun module:function/arity. Is that true?
>>>
>> It is true. How would you differenciate the function 'double' from the atom
>> 'double'?
>>
> Ah yes. That must be the point. Thanks.
>
> Ivan
>
>
---------------------------------------------------
---------------------------------------------------
WE'VE CHANGED NAMES!
Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
www.erlang-solutions.com