On 3/28/12 7:54 AM, Marijn Haverbeke wrote:
Say you happen to have a top-level function that you want to apply to all elements in a vector. It doesn't return bool, so vec::each can't be applied to it. vec::iter is useful there.
True.
Though maybe this could be some adaptor function built on top of the iter library instead, so that we only have to write it once, rather than for every iterable type.
Yes. For that matter, `each()` can be built on top of `all()` once we have traits and so forth.
Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
