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