On Sun, May 5, 2013 at 4:49 PM, Masklinn <[email protected]> wrote: > > Now here's the question, to which I don't have an answer but which will > tell you whether your suggestion makes sense — at least when compared > to existing languages: is it possible to have an infinite vector in Rust, > or to zip finite and infinite datastructures (iterators?) together?
Yes, you can make infinite generators implementing the Iterator trait. One example of that is `iterator::Counter::new(1, 2)` which is the same as `[1,3..]` in Haskell. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
