Take a look at the iter library. You can install it via cargo or find
it here:
https://github.com/nikomatsakis/rust-iter
Feedback very welcome.
Some work is needed to make it nicer to use, but the idea is basically
right. Right now there are some limitations to the current impl of
method calls (for example, you cannot bind "a.b(_)") that need to be
patched up to make the whole thing use ifaces and impls rather than
top-level functions.
Niko
On 1/12/12 12:29 PM, Rust wrote:
Niko Matsakis <[email protected]> hat am 12. Januar 2012 um 19:18
geschrieben:
> On 1/12/12 9:47 AM, Graydon Hoare wrote:
> > More generally though, I think block-centric is best, and perhaps
> > provide a standard vec method that appends-to-a-vec everything fed
to it.
[...]
> or even:
>
> let keys = hash.keys.to_list();
Actually, this sounds like a good compromise to me.
I'm looking forward to this.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev