lean4-htt/src/Std/Data/Iterators/Combinators/Monadic.lean
Paul Reichert a8ab3f230c
feat: introduce iterator combinators takeWhile and dropWhile (#8493)
This PR provides the iterator combinators `takeWhile` (forwarding all
emitted values of another iterator until a predicate becomes false)
`dropWhile` (dropping values until some predicate on these values
becomes false, then forwarding all the others).
2025-05-30 16:35:40 +00:00

11 lines
429 B
Text

/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Reichert
-/
prelude
import Std.Data.Iterators.Combinators.Monadic.Take
import Std.Data.Iterators.Combinators.Monadic.TakeWhile
import Std.Data.Iterators.Combinators.Monadic.DropWhile
import Std.Data.Iterators.Combinators.Monadic.FilterMap
import Std.Data.Iterators.Combinators.Monadic.Zip