Mercurial > repo
view Test.hs @ 4639:aacef6e9ae1c
<oerjan> addquote <quintopia> my mom asked me what \'je ne sais quois\' means. she doesn\'t realize i\'ve told her.
author | HackBot |
---|---|
date | Sun, 18 May 2014 23:39:39 +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