Created
March 17, 2016 12:30
-
-
Save kei-q/1d6fca65b0a9693c5257 to your computer and use it in GitHub Desktop.
This file contains 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
main :: IO () | |
main = do | |
return $ zip [1..] [1..] | |
putStrLn "hoge" | |
fib1 = 1 : 1 : zipWith (+) fib1 (tail fib1) | |
fib2 0 = 1 | |
fib2 1 = 1 | |
fib2 n = fib2 (n-1) + fib2 (n-2) | |
fib3 = 1 : go 0 1 | |
where | |
go m n = m+n : go n (m+n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment