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).
11 lines
429 B
Text
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
|