Created
July 19, 2016 11:22
-
-
Save enil/85d926c30be98590e500d0df9dd0f0d2 to your computer and use it in GitHub Desktop.
Implementing a fibonacci stream with Stream.unfold
This file contains hidden or 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
Stream.unfold({0, 1}, fn {x, y} -> {x, {y, x + y}} end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment