-module(helloworld).
-export([start/0]).
start() ->
Adder = fun(X) -> fun(Y) -> io:fwrite("~p~n",[X + Y]) end end,
A = Adder(6),
A(10).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266365.html
-module(helloworld).
-export([start/0]).
start() ->
Adder = fun(X) -> fun(Y) -> io:fwrite("~p~n",[X + Y]) end end,
A = Adder(6),
A(10).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266365.html