view Test.hs @ 4700:e626cb545dd7

<elliott> addquote <oerjan> or to put it weirder, a continuation is the same as an expression zipper.
author HackBot
date Sun, 27 Jul 2014 23:55:58 +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