Fix the doc of findIndices
commit6ff48b386f16dfd8380764601ccf9400de08e12d
authorHarendra Kumar <harendra@composewell.com>
dateWed 7 Dec 2022, 18:24 (4 years ago)
parent5cb0d4d
core/src/Streamly/Internal/Data/Stream/Bottom.hs+1−1
@@ -488,7 +488,7 @@ drop n m = fromStreamD $ D.drop n $ toStreamD m
488488-- | Find all the indices where the element in the stream satisfies the given
489489-- predicate.
490490--
491−-- >>> findIndices p = Stream.fold (Fold.findIndices p)
491+-- >>> findIndices p = Stream.scanMaybe (Fold.findIndices p)
492492--
493493{-# INLINE findIndices #-}
494494findIndices :: Monad m => (a -> Bool) -> Stream m a -> Stream m Int