Unfragile

Verified record · from the answer index

peeking_take_while

librarytested · static-verifiedscore 40/100signed passport ✓published 1885d ago · verified 2026-10-243,545,583 monthly downloads

Like `Iterator::take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_while` predicate returned false after d

lib:crates:peeking_take_while · published by fitzgen · source repository