Skip to content

Instantly share code, notes, and snippets.

@nivertech
Forked from blt/hello.erl
Last active August 29, 2015 14:23
Show Gist options
  • Save nivertech/0605b02822b5abfb1a07 to your computer and use it in GitHub Desktop.
Save nivertech/0605b02822b5abfb1a07 to your computer and use it in GitHub Desktop.
-module(hello).
-export([hello/0]).
hello() ->
[hello(X) || X<-[robert,joe,mike]].
hello(robert) ->
io:format("Hello, Mike.~n");
hello(joe) ->
io:format("Hello, Robert.~n");
hello(mike) ->
io:format("Hello, Joe.~n").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment