RosettaCodeData/Task/Higher-order-functions/Erlang/higher-order-functions-2.erl
2023-07-01 13:44:08 -04: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