Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created May 25, 2012 22:38
Show Gist options
  • Save JakubOboza/2790956 to your computer and use it in GitHub Desktop.
Save JakubOboza/2790956 to your computer and use it in GitHub Desktop.
foo(_, []) -> []
foo(F, [H | T]) -> foo(F(H), T)
bar(X) ->
case X of
ok -> fire_bomb()
_ -> crack_error()
end
moo() ->
foo(fun(X) -> io:format("~p",[X]) end, [1,2,3]),
bar(ok)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment