Mercurial > repo
view Test.hs @ 4513:a2683a68d5ed
<oerjan> learn oerjan_ is oerjan and \xc3\xb8rjan\'s chim\xc3\xa6ric clone. he shows up on irc when the network is having trouble.
author | HackBot |
---|---|
date | Wed, 05 Mar 2014 09:23:06 +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