Skip to content

Commit

Permalink
simple function example
Browse files Browse the repository at this point in the history
  • Loading branch information
k0dev committed Nov 15, 2022
1 parent 903bbd0 commit 62cfdba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/function_example.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-module(function_example).
-export([f/1]).

f(2) -> "two";
f(1) -> "one";
f(0) -> "zero";
f(3) -> "three";
f(_) -> "unknown number".

0 comments on commit 62cfdba

Please sign in to comment.