What is the canonical way to take one extra element in an iterator after a predicate fails in rust?

前端 未结 0 1117
忘掉有多难
忘掉有多难 2020-12-22 07:06

If I had a Vec and I wanted to create an iterator that stops at and including the first false, what would be the canonical way to imple

相关标签:
回答
  • 消灭零回复
提交回复
热议问题