Skip to content

Instantly share code, notes, and snippets.

@gdejohn
Last active February 28, 2017 11:06
Show Gist options
  • Save gdejohn/6d92c2613eb202cb730e to your computer and use it in GitHub Desktop.
Save gdejohn/6d92c2613eb202cb730e to your computer and use it in GitHub Desktop.
Lazy, infinite, corecursive Fibonacci sequence
value fibonacci = loop([0, 1])(([x, y]) => [y, x + y]).map(Tuple.first);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment