view Test.hs @ 4681:a5aec814b243

<FireFly> addquote <adu> me thinks fungot is high on crack <fungot> adu: not exactly something like that. but even real scheme :p.
author HackBot
date Wed, 02 Jul 2014 23:36:04 +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