Skip to content
justin-calleja edited this page May 20, 2013 · 1 revision
-module(demo).
-export([add/2, subtract/2]).

add(N1, N2) ->
	N1 + N2.

subtract(N1, N2) ->
	N1 - N2.
-module(demo_send).
-export([send_to_self/1]).

send_to_self(Msg) ->
    self() ! Msg.
Clone this wiki locally