[Haskell] Recursive definition of fibonacci with Data.Vector

Edgar Z. Alvarenga edgar at ymonad.com
Sun Mar 7 15:49:52 EST 2010


Hello,

why I can't define a recursive vector using Data.Vector, like in
the example:

import qualified Data.Vector as V

let fib = 0 `V.cons` (1 `V.cons` V.zipWith (+) fib (V.tail v))

Cheers,
Edgar


More information about the Haskell mailing list