Tips'n'tricks
Join = fun([X|Rest], D) -> [ X | [ [D,E] || E <- Rest ] ] end.
io:format("~s~n", [Join(["a", "b", "cde", "h", "k", "lm"], $,)]).a,b,cde,h,k,lmok
Post a Comment
No comments:
Post a Comment