Mercurial > repo
view Test.hs @ 4625:abe02e1a9132
<oerjan> addquote <kmc> i came back here and misread my own statement as "fancy C++ mushrooms"
author | HackBot |
---|---|
date | Thu, 01 May 2014 07:00:56 +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