Mercurial > repo
view Test.hs @ 4650:88971ee3315f
<oerjan> addquote <MDude> It seems there aren\'t any expert systems for answering questions on the nature of expert systems.
author | HackBot |
---|---|
date | Thu, 05 Jun 2014 05:51:00 +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