mozilla/rust — Issue #1729: Port modules "str" and "vec" to interface "iter"
Author: Lenny222
Created: 2012-02-01 08:11:13+00:00
State: open

"iter" is now in core: https://github.com/mozilla/rust/commit/303e48e784b3af5eba0a7c0a930bd5667744f889

Many functions in "str" and "vec" could be removed, if "str" and "vec" would implement the "iter" interface.

Also we should only have functions which iterate.
E.g. if we only provide ```str::chars_iter```, we could get rid of ```str::chars```, since this can be easily implemented using ```iter::to_list``` and ```str::chars_iter```.

See https://mail.mozilla.org/pipermail/rust-dev/2012-January/001216.html