> Yes, I think vec::iter() should be removed eventually.

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.

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.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to