newbie question about fun expressions
Sat Sep 17 19:06:35 CEST 2005
Hi, I have a question:
In "Erlang reference manual" 6.17 Fun Expressions is says that the following
fun expressions are also allowed:
So I tried "fun Name/Arity" like this:
46> lists:map(fun is_atom/1,[peter,1]).
But "fun Module:Name/Arity" seems that does not work:
47> lists:map(fun lists:reverse/1,[peter,1]).
** 1: syntax error before: ':' **
What am I doing wrong?
More information about the erlang-questions