First commit

This commit is contained in:
Mariano Uvalle 2020-06-20 13:57:33 -05:00
commit 1dba0af064
36 changed files with 1065 additions and 0 deletions

21
arity_calc.ex Normal file
View file

@ -0,0 +1,21 @@
defmodule CalcOne do
def sum(a) do
sum(a, 0)
end
def sum(a, b) do
a + b
end
end
defmodule CalcTwo do
def sum(a, b \\ 0) do
a + b
end
end
defmodule CalcThree do
def fun(a, b, c \\ 0, d, e \\ 0) do
a + b + c + d + e
end
end