over pararenthesised arty fibonacci

This commit is contained in:
Don Stewart 2007-11-07 23:06:01 +00:00
parent ab1f382566
commit 2b7a8d06da

View File

@ -40,7 +40,7 @@ import XMonad.StackSet ( integrate )
-- %layout , Layout $ spiral (1 % 1) -- %layout , Layout $ spiral (1 % 1)
fibs :: [Integer] fibs :: [Integer]
fibs = 1 : 1 : (zipWith (+) fibs (tail fibs)) fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
mkRatios :: [Integer] -> [Rational] mkRatios :: [Integer] -> [Rational]
mkRatios (x1:x2:xs) = (x1 % x2) : mkRatios (x2:xs) mkRatios (x1:x2:xs) = (x1 % x2) : mkRatios (x2:xs)