-
-
Save nivertech/0605b02822b5abfb1a07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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