Skip to content

Instantly share code, notes, and snippets.

@enil
Created July 19, 2016 11:22
Show Gist options
  • Save enil/85d926c30be98590e500d0df9dd0f0d2 to your computer and use it in GitHub Desktop.
Save enil/85d926c30be98590e500d0df9dd0f0d2 to your computer and use it in GitHub Desktop.
Implementing a fibonacci stream with Stream.unfold
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