2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/Programmierparadigmen/scripts/haskell/fibonacci-pattern-matching.hs

4 lines
54 B
Haskell
Raw Normal View History

fib 0 = 0
fib 1 = 1
fib n = fib (n - 1) + fib (n - 2)