@@ -348,8 +348,8 @@ module Streamly.Prelude
348 , scanl1M'
348 , scanl1M'
350 -- ** Scan Using Fold
350 -- ** Scan Using Fold
351− , runScan
351+ , scan
352− , runPostscan
352+ , postscan
354 -- , lscanl'
354 -- , lscanl'
355 -- , lscanlM'
355 -- , lscanlM'
@@ -911,7 +911,7 @@ import Streamly.Internal.Prelude
911-- However, we can wrap the fold in a scan to convert it into a lazy stream of
911-- However, we can wrap the fold in a scan to convert it into a lazy stream of
912-- fold steps. We can then terminate the stream whenever we want. For example,
912-- fold steps. We can then terminate the stream whenever we want. For example,
914−-- >>> S.toList $ S.take 1 $ S.runScan FL.head (1 `S.cons` undefined)
914+-- >>> S.toList $ S.take 1 $ S.scan FL.head (1 `S.cons` undefined)
915-- [Nothing]
915-- [Nothing]
917-- The following example extracts the input stream up to a point where the
917-- The following example extracts the input stream up to a point where the
@@ -921,7 +921,7 @@ import Streamly.Internal.Prelude
921-- > S.toList
921-- > S.toList
922-- $ S.map (fromJust . fst)
922-- $ S.map (fromJust . fst)
923-- $ S.takeWhile (\\(_,x) -> x <= 10)
923-- $ S.takeWhile (\\(_,x) -> x <= 10)
924−-- $ S.runPostscan ((,) \<$> FL.last \<*> avg) (S.enumerateFromTo 1.0 100.0)
924+-- $ S.postscan ((,) \<$> FL.last \<*> avg) (S.enumerateFromTo 1.0 100.0)
927-- [1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0]
927-- [1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0]