[rust-dev] Iterators, lists, vectors

Joe Groff arcata at gmail.com
Thu Jan 12 10:12:33 PST 2012


On Thu, Jan 12, 2012 at 7:30 AM, Rust <rust at kudling.de> wrote:
> For example: `str::split` splits a string and returns a list/vector of
> sub-strings.

In C++ or D you could have a lazy split with an STL iterator/Phobos
range adapter that turns an iterator over objects into an iterator
over slices. Now that Rust has typeclasses, could a similar design
work?

-Joe


More information about the Rust-dev mailing list