[erlang-questions] Convert atom and arity into fun

Andras Georgy Bekes <>
Fri Sep 5 12:53:23 CEST 2008

> Given a function's name as an atom and an arity (for instance as
> returned by module_info(exports)), how can I convert this into a fun
> that I can invoke?

fun Module:FunctionName/Arity

You can find it here:
Erlang Reference Manual/ 6. Expressions/ 6.17 Fun Expressions


More information about the erlang-questions mailing list