On 5 mai 2013, at 22:51, Daniel Micay <danielmi...@gmail.com> wrote: > On Sun, May 5, 2013 at 4:49 PM, Masklinn <maskl...@masklinn.net> 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.
I know you can create infinite iterators but can you *zip* to one was the question. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev