on master help sign in
Fix the doc of findIndices
6ff48b3Harendra Kumar
core/src/Streamly/Internal/Data/Stream/Bottom.hs+1−1
@@ -488,7 +488,7 @@ drop n m = fromStreamD $ D.drop n $ toStreamD m
488-- | Find all the indices where the element in the stream satisfies the given
488-- | Find all the indices where the element in the stream satisfies the given
489-- predicate.
489-- predicate.
490--
490--
491−-- >>> findIndices p = Stream.fold (Fold.findIndices p)
491+-- >>> findIndices p = Stream.scanMaybe (Fold.findIndices p)
492--
492--
493{-# INLINE findIndices #-}
493{-# INLINE findIndices #-}
494findIndices :: Monad m => (a -> Bool) -> Stream m a -> Stream m Int
494findIndices :: Monad m => (a -> Bool) -> Stream m a -> Stream m Int