Created
May 27, 2017 16:41
-
-
Save deque-blog/b955b02526a79933fd762d3a0540cb37 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
fiboIterate :: Int -> Integer | |
fiboIterate n = fst (iterate next (0, 1) !! n) | |
where next (a, b) = (b, a + b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment