[erlang-questions] question about Variable:fun()

Jack Moffitt <>
Mon Jun 27 06:35:20 CEST 2011


> New to Erlang. I saw some program with statement such as V:fun() which I
> can't find from Joe's Erlang book. I know module:fun() is calling a function
> defined in a module. But do this to a variable is confusing. Does that
> variable define a function, and how?

It is probably bound to an atom, like in this example:

X = dict,
D = X:new().

jack.



More information about the erlang-questions mailing list