RosettaCodeData/Task/Higher-order-functions/Erlang/higher-order-functions-2.erl
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
135 B
Erlang

1> c(tests).
{ok, tests}
2> tests:first(fun tests:second/0).
hello
3> tests:first(fun() -> anonymous_function end).
anonymous_function