Rust just standardized `ControlFlow` which would let you pass equivalents of `break` and `continue` as values.
x.try_for_each(|y| {...; ControlFlow::Break} ) x.try_for_each(|y| {...; ControlFlow::Break} )Internal iterators and/or lambdas are at odds with imperative code. Some guy also yesterday ponder about this stuff:
https://www.reddit.com/r/ProgrammingLanguages/comments/pno38...