如果我调用test(),它就不起作用.有人可以解释一下吗?
-module(anony). -export([test/0, test1/0]). test1() -> "hello". test() -> C = fun(F) -> Val = F(), io:format("~p ", [Val]) end, lists:foreach(debug, [test1]).
erlang anonymous-function
anonymous-function ×1
erlang ×1