Mercurial > repos > other > SevenLanguagesInSevenWeeks
annotate 5-Erlang/basic.erl @ 71:32f018861e36
Add Day 1 Erlang content
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 02 Feb 2018 20:38:36 +0000 |
parents | |
children |
rev | line source |
---|---|
71 | 1 -module(basic). % Define the module name |
2 -export([mirror/1]). % Note the Prolog-like notiation - "mirror function takes one parameter) | |
3 % Compilation is done from within "erl" using "c(module_name)" | |
4 | |
5 % This function will be called as "basic:mirror(thing)" | |
6 mirror(Anything) -> Anything. |