Closed
Description
Is it possible to implement a zero-cost, safe, and doesn't-conflict-with-anything-else std::iter::Iterator
for arrays, such that it is no longer required to called .iter()
to get an iterator out of an array?
e.g. is it possible to use
for value in ["foo", "bar"] {
....
}
instead of needing to manually add the .iter()
:
for value in ["foo", "bar"].iter() {
....
}
Metadata
Metadata
Assignees
Labels
No labels