This is something I've always wanted in Stream-based code. Right now I have to use manual while-loop iteration for anything involving "read from this stream until something you need is found, then stop". The "stop" part also makes it impossible to express with fold and the like.
https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find
This is something I've always wanted in
Stream
-based code. Right now I have to use manual while-loop iteration for anything involving "read from this stream until something you need is found, then stop". The "stop" part also makes it impossible to express withfold
and the like.