Mercurial > repos > other > SevenLanguagesInSevenWeeks
view 5-Erlang/basic.erl @ 99:67631cb2ea48
Expand the last note on getting into the monad state
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 30 Jun 2019 16:15:33 +0100 |
parents | 32f018861e36 |
children |
line wrap: on
line source
-module(basic). % Define the module name -export([mirror/1]). % Note the Prolog-like notiation - "mirror function takes one parameter) % Compilation is done from within "erl" using "c(module_name)" % This function will be called as "basic:mirror(thing)" mirror(Anything) -> Anything.