Skip to content

Instantly share code, notes, and snippets.

@shiro01
Created June 21, 2018 04:20
Show Gist options
  • Save shiro01/054a5e66f613359dd6eaefe127aea25e to your computer and use it in GitHub Desktop.
Save shiro01/054a5e66f613359dd6eaefe127aea25e to your computer and use it in GitHub Desktop.
greet erl
-module(greet).
-export([main/0]).
main() ->
greeting("Hi", "World"),
greeting("hoge", "hogeeee").
greeting("Hi", Name) -> io:format("Hello!, ~p~n", [Name]);
greeting(H, Name) -> io:format("~p!, ~p~n", [H,Name]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment