Closed
Description
Proposed in rust-lang/rfcs#582 and rust-lang/rfcs#1064, the Iterator
trait could have a .foreach
method which drains the iterator immediately and runs a closure on each element to concisely do so without a for
loop.
Metadata
Metadata
Assignees
Labels
No labels