Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. % hello world program
  2. main(_Args) ->
  3. L = [1,2,3,4,5],
  4. % Function = fun(Elem) -> io:fwrite(Elem) end,
  5. lists:foreach(fun(Elem) -> io:fwrite("~p~n", [Elem]) end, L).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement