Mercurial > repo
view Test.hs @ 4607:c528f5d9ba11
<oerjan> sed -i \'s/hg repository/web-viewable filesystem repository/\' bin/url
author | HackBot |
---|---|
date | Sun, 20 Apr 2014 22:40:23 +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