defmodule Example do def fact(0), do: 1 def fact(1), do: 1 def fact(n), do: fact(n - 1) + fact(n - 2) end