[erlang-questions] Convert atom and arity into fun

Richard A. O'Keefe ok@REDACTED
Mon Sep 8 06:59:32 CEST 2008


On 5 Sep 2008, at 10:45 pm, Richard Carlsson wrote:
> There is currently no immediate way of doing this.

We have the "fun <name>/<arity>" notation, which I believe
has been extended or will be extended to "fun <module>:<name>/<arity>".
It would seem like a minor change to the language to allow
variables here.

It must be said, this looks like a case for the
old-fashioned {M,F} or {M,F,A} tuples-naming-functions.




More information about the erlang-questions mailing list