Why is the following not allowed:
156> lists:map(lists:sum,[[1,2,3,4],[1,2,3]).
* 1: illegal expression
, and when I make a fun around lists:sum, it is allowed:
162> lists:map(fun (L)->lists:sum(L)end,[[1,2,3,4],[1,2,3]]).
[10,6]
?