diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index e683f161f11e..55a18afffd07 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -1794,6 +1794,25 @@ os_prompt%

Allowed in guard tests.

+ + erlang:make_fun(Module, Function, Arity) -> fun() + Create an external fun + + Module = Function = atom() + Arity = integer() + + +

erlang:make_fun/3 is internally used to implement + the fun Module:Function/Arity syntax. + From R14A, variables may be used in the + fun Module:Function/Arity syntax (not only literals), + so there is no longer any reason to call this BIF directly.

+

Calling this BIF directly from your own code is not + recommended. However, tools that analyze Erlang code may want + to handle calls to this BIF specially to improve the analysis. +

+
+
length(List) -> int() Length of a list