haskell  

[Haskell] Recursive definition of fibonacci with Data.Vector

Edgar Z. Alvarenga
Sun, 07 Mar 2010 12:52:07 -0800

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
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell