Anonymous user
Fibonacci sequence: Difference between revisions
→{{header|Elm}}
imported>Polarit |
imported>Polarit |
||
Line 5,714:
=={{header|Elm}}==
Naïve recursive implementation.
<syntaxhighlight lang="haskell">fibonacci : Int -> Int
Line 5,724 ⟶ 5,725:
==={{header|version 2}}===
<syntaxhighlight lang=”elm">fib : Int -> number
fib n =
case n of
|