Mercurial > repo
view Test.hs @ 4568:2fbda026da6b
<oerjan> sed -i \'21,$d\' share/8ballreplies #More fun than `revert
author | HackBot |
---|---|
date | Tue, 15 Apr 2014 11:43:18 +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