~statianzo/sevenlangs

sevenlangs/erlang/errormatch.erl -rw-r--r-- 135 bytes
2fcd4511Jason Staten day one logic style 1 year, 2 months ago
                                                                                
1
2
3
4
5
-module(errormatch).
-export([iferror/1]).

iferror({success}) -> "Great Success!";
iferror({error, Message}) -> "Error: " ++ Message.