[erlang-questions] Efficiency is passing a functin

James Rosenblum <>
Sun Sep 23 02:07:10 CEST 2012

Kind people,

Is there an appreciable difference in these two ways of passing a function?

F = fun(A,B) -> my_function(A,B) end.
lists:map(F, Lst)



lists:map(fun my_function/2, Lst)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120922/f4f52b47/attachment.html>

More information about the erlang-questions mailing list