Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -4,3 +4,6 @@ defmodule MutualRecursion do
|
|||
def m(0), do: 0
|
||||
def m(n), do: n - f(m(n - 1))
|
||||
end
|
||||
|
||||
IO.inspect Enum.map(0..19, fn n -> MutualRecursion.f(n) end)
|
||||
IO.inspect Enum.map(0..19, fn n -> MutualRecursion.m(n) end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue