view Test.hs @ 4655:d3b56f4e1d92

<oerjan> addquote <Bike> scheme doesn\'t have any control structures, you can make them yourself out of call/cc, lambdas, and arrogance
author HackBot
date Mon, 09 Jun 2014 19:15:23 +0000
parents 7f957c1f4661
children
line wrap: on
line source

import Data.List(inits);main = let p = 1 : zipWith (+) (map (*4) p) (map (sum . zipWith (*) p . reverse) (inits p)) in print $ p !! 1000