Mercurial > repo
view Test.hs @ 4526:7c24a4d36c28
<boily> ` echo \'Holy water is water made by boiling the hell out of Spain.\' >wisdom/\'holy water\'
author | HackBot |
---|---|
date | Thu, 13 Mar 2014 10:43:31 +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