Mercurial > repo
view Test.hs @ 4662:d2755d17a084
<mroman> learn protocol Not to be confused with protocoal.
author | HackBot |
---|---|
date | Wed, 11 Jun 2014 12:55:35 +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