Skip to content

Instantly share code, notes, and snippets.

@blt
Last active December 4, 2020 05:41
Show Gist options
  • Save blt/0ef21c1f04fc867cd24b to your computer and use it in GitHub Desktop.
Save blt/0ef21c1f04fc867cd24b to your computer and use it in GitHub Desktop.
What should be the standard Erlang "Hello, world!"
-module(hello).
-export([hello/1]).
hello(robert) ->
io:format("Hello, Mike.");
hello(joe) ->
io:format("Hello, Robert.");
hello(mike) ->
io:format("Hello, Joe.").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment