Last active
May 27, 2017 21:10
-
-
Save deque-blog/3439095c2fdb968e6947b71cd9761d77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fiboRecur :: Int -> Integer | |
fiboRecur = loop 0 1 | |
where | |
loop !curr !next n | |
| n == 0 = curr | |
| otherwise = loop next (curr + next) (n - 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment