Skip to content

Instantly share code, notes, and snippets.

@clockfort
Last active December 18, 2015 08:29
Show Gist options
  • Save clockfort/5754914 to your computer and use it in GitHub Desktop.
Save clockfort/5754914 to your computer and use it in GitHub Desktop.
reddit r/codes/
[Prelude] λ> import Data.Char
[Prelude Data.Char] λ> let fibs = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]
[Prelude Data.Char] λ> let mystery = [6, 9, 4, 45, 70, 8, 39, 63, 306 ]
[Prelude Data.Char] λ> map (chr . (+64) . fromInteger) $ zipWith (div) mystery fibs
"FIBONACCI"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment