[erlang-questions] Efficiency is passing a functin

James Rosenblum jrosenblum@REDACTED
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)

vs.

-export([my_function/2]).

lists:map(fun my_function/2, Lst)

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


More information about the erlang-questions mailing list