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