Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
5
Task/Ackermann-function/Elixir/ackermann-function.elixir
Normal file
5
Task/Ackermann-function/Elixir/ackermann-function.elixir
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
defmodule Ackermann do
|
||||
def ack(0, n), do: n + 1
|
||||
def ack(m, 0), do: ack(m - 1, 1)
|
||||
def ack(m, n), do: ack(m - 1, ack(m, n - 1))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue