[erlang-questions] Convert atom and arity into fun

Christian chsu79@REDACTED
Fri Sep 5 12:37:37 CEST 2008


funny(M,{F, 0}) ->
   fun () -> M:F() end;
funny(M, {F, 1}) ->
   fun (A) -> M:F(A) end;
...



More information about the erlang-questions mailing list