Skip to content

Instantly share code, notes, and snippets.

@isaacsanders
Created August 1, 2012 01:21
Show Gist options
  • Save isaacsanders/3222308 to your computer and use it in GitHub Desktop.
Save isaacsanders/3222308 to your computer and use it in GitHub Desktop.
A list of all fibonacci numbers in 1 line of Haskell.
fibonacciNumbers = 1 : scanl (+) 1 fibs
-- Thanks to @ReinH for the tip!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment