findIndices package:streamly-core
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.scanMaybe (Fold.findIndices p)