on master help sign in
Make some misc doc fixes
commitc3cf9cc0196414389623f9dc01fa83389ec2c7d4 authorHarendra Kumar <harendra@composewell.com> dateThu 21 Apr 2022, 14:33 (4 years ago) parent6d24791
2 files changed+3−3
core/src/Streamly/Internal/Data/Parser.hs+2−2 core/src/Streamly/Internal/Data/Stream/StreamD/Transform.hs+1−1
core/src/Streamly/Internal/Data/Parser.hs+2−2
@@ -678,8 +678,8 @@ groupBy :: MonadCatch m => (a -> a -> Bool) -> Fold m a b -> Parser m a b
678678groupBy eq = D.toParserK . D.groupBy eq
679679
680680-- | Unlike 'groupBy' this combinator performs a rolling comparison of two
681−-- successive elements in the input stream. Assuming the input stream to the
682−-- parser is @[a,b,c,...]@ and the comparison function is @cmp@, the parser
681+-- successive elements in the input stream. Assuming the input stream
682+-- is @[a,b,c,...]@ and the comparison function is @cmp@, the parser
683683-- first assigns the element @a@ to the first group, then if @a \`cmp` b@ is
684684-- 'True' @b@ is also assigned to the same group. If @b \`cmp` c@ is 'True'
685685-- then @c@ is also assigned to the same group and so on. When the comparison
core/src/Streamly/Internal/Data/Stream/StreamD/Transform.hs+1−1
@@ -1265,7 +1265,7 @@ rollingMapM f (Stream step1 state1) = Stream step (RollingMapGo state1 Nothing)
12651265 Skip s -> return $ Skip $ RollingMapGo s curr
12661266 Stop -> return Stop
12671267
1268−-- rollingMap is a special case of an incremental sliding fold. It can be
1268+-- | rollingMap is a special case of an incremental sliding fold. It can be
12691269-- written as:
12701270--
12711271-- > fld f = slidingWindow 1 (Fold.foldl' (\_ (x,y) -> f y x)