You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 afor
loop.The text was updated successfully, but these errors were encountered: