📅  最后修改于: 2022-03-11 14:48:01.694000             🧑  作者: Mango
代码示例1
defmodule Fib do
def fib(0) do 0 end
def fib(1) do 1 end
def fib(n) do fib(n-1) + fib(n-2) end
end
IO.puts Fib.fib(10)