parent
de1133bd21
commit
4e7bd8dcff
@ -0,0 +1,3 @@
|
|||||||
|
* Alleycat Erlang
|
||||||
|
|
||||||
|
Web based game engine for alleycat games
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
-module(useless).
|
||||||
|
-export([add/2, hello/0 ,greet_and_add_two/1]).
|
||||||
|
|
||||||
|
add(A,B) ->
|
||||||
|
A + B.
|
||||||
|
|
||||||
|
%% Shows greetings
|
||||||
|
%% io:format/1 is a standart function for text output
|
||||||
|
hello () ->
|
||||||
|
io:format("Hello World!~n").
|
||||||
|
|
||||||
|
greet_and_add_two(X) ->
|
||||||
|
hello(),
|
||||||
|
add(X,2).
|
||||||
Loading…
Reference in new issue