Mercurial > repo
view Test.hs @ 4536:f981ab837cf7
<kmc> addquote <lexande> and i had at one point been a meme
author | HackBot |
---|---|
date | Sat, 29 Mar 2014 23:56:47 +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