Skip to content

Instantly share code, notes, and snippets.

@perjerz
Created September 15, 2019 05:05
Show Gist options
  • Save perjerz/5a7d8e07a40959ff76e4b42e204c0c2f to your computer and use it in GitHub Desktop.
Save perjerz/5a7d8e07a40959ff76e4b42e204c0c2f to your computer and use it in GitHub Desktop.
ajarn dave haskell
fibonacci :: Int -> Int
fibonacci 0 = 1
fibonacci 1 = 1
fibonacci n = fibonacci(n-2) + fibonacci(n-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment