view Test.hs @ 4500:199973e40386

<kmc> addquote <zzo38> C and C++ have some bad features compared to BLISS. <zzo38> Although C does have some good features too. Unfortunately I cannot find a BLISS compiler.
author HackBot
date Wed, 26 Feb 2014 04:11:30 +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