Content deleted Content added
Line 99:
Multiple function bodies with [[Guard (computer science)#Mathematics|guards]]
<syntaxhighlight lang="elixir">
def fib(n) when n in [0, 1], do: n
def fib(n), do: fib(n-2) + fib(n-1)
</syntaxhighlight>
|
Line 99:
Multiple function bodies with [[Guard (computer science)#Mathematics|guards]]
<syntaxhighlight lang="elixir">
def fib(n) when n in [0, 1], do: n
def fib(n), do: fib(n-2) + fib(n-1)
</syntaxhighlight>
|