view 5-Erlang/basic.erl @ 78:75dbcd30dee5

Add final exercise code from Erlang It works, but it never made much sense because there was too much magic
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Jun 2019 20:10:37 +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.