view Test.hs @ 4679:06ce3f2c2152

<fizzie> addquote <olsner> fungot: what do you do to get rid of information you no longer need? <fungot> olsner: emacs lisp for a while
author HackBot
date Tue, 01 Jul 2014 20:09:29 +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