Mercurial > repo
view Test.hs @ 4572:6eb8f50f2a37
<oerjan> echo >wisdom/phantom_hoover \'Phantom Michael Hoover is a true Scotsman, hatheist, and completely out of the loop.\'
author | HackBot |
---|---|
date | Tue, 15 Apr 2014 23:32:50 +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