Mercurial > repo
view Test.hs @ 4475:b527947cd0a1
<oerjan> sed -i \'s/Norman/[REDACTED]/g\' quotes
author | HackBot |
---|---|
date | Wed, 19 Feb 2014 23:48:55 +0000 |
parents | 1baee8e6ee55 |
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