Advertisement
krot

lists:foldl

Jul 28th, 2019
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.09 KB | None | 0 0
  1. lists:foldl(fun(V,{Ac1,Ac2})-> if V>5->{[V|Ac1],Ac2}; true->{Ac1,[V|Ac2]}end  end,{[],[]},List).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement