Mercurial > repo
view Test.hs @ 4627:64a2d83fa108
<kmc> echo "words \\${1---eng-1M --esolangs 20} | sed -re \'s/( |$)/coin\\1/g\' | rainwords" > bin/coins
author | HackBot |
---|---|
date | Sun, 04 May 2014 18:20:25 +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