Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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