findIndices package:streamly-core
Returns the index of the latest element if the element satisfies the
given predicate.
Returns the index of the latest element if the element satisfies the
given predicate.
Find all the indices where the element in the stream satisfies the
given predicate.
>>> findIndices p = Stream.postscanlMaybe (Scanl.findIndices p)