View difference between Paste ID: 6GgKt0C8 and bark7chA
SHOW: | | - or go back to the newest paste.
1
-module(print_loop)
2
-export([prnt/1]).
3
4-
prnt(Msg) ->
4+
prnt() ->
5
	receive
6-
		Msg -> 
6+
		hi -> 
7-
			io:format(Msg);
7+
			io:format("Hello, World!");
8
		terminate ->
9
			prnt(Msg);
10
		_Unknwn ->
11
			ok,
12
			prnt(Msg)
13
	end.