-module(helloworld).
-import(lists,[all/2]).
-export([start/0]).
start() ->
Lst1 = [1,2,3],
Predicate = fun(E) -> E rem 2 == 0 end,
Status = all(Predicate, Lst1),
io:fwrite("~w~n",[Status]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/266291.html