Skip to content

Instantly share code, notes, and snippets.

@jldupont
Created February 4, 2012 15:41
Show Gist options
  • Save jldupont/1738545 to your computer and use it in GitHub Desktop.
Save jldupont/1738545 to your computer and use it in GitHub Desktop.
Erlang / greet
greet(male, Name) ->
io:format("Hello, Mr. ~s!", [Name]);
greet(female, Name) ->
io:format("Hello, Mrs. ~s!", [Name]);
greet(_, Name) ->
io:format("Hello, ~s!", [Name]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment