Mercurial > repo
view Test.hs @ 4667:fcf6b1af0d97
<oerjan> echo \'We could tell you what antediluvian means, but that would just open a flood of questions.\' >wisdom/antediluvian
author | HackBot |
---|---|
date | Wed, 11 Jun 2014 13:00:22 +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