on master help sign in
Rename Fold.lsessionsOf to Fold.intervalsOf
436af69Adithya Kumar
src/Streamly/Internal/Data/Fold.hs+1−1
@@ -213,7 +213,7 @@ module Streamly.Internal.Data.Fold
213
213
214 -- * Nesting
214 -- * Nesting
215 , many
215 , many
216− , lsessionsOf
216+ , intervalsOf
217 , chunksOf
217 , chunksOf
218 , chunksBetween
218 , chunksBetween
219
219
src/Streamly/Internal/Data/Fold/Types.hs+5−5
@@ -201,7 +201,7 @@ module Streamly.Internal.Data.Fold.Types
201 -- * Nested Application
201 -- * Nested Application
202 , concatMap
202 , concatMap
203 , many
203 , many
204− , lsessionsOf
204+ , intervalsOf
205 , chunksOf
205 , chunksOf
206 , chunksOf2
206 , chunksOf2
207
207
@@ -968,10 +968,10 @@ takeByTime n (Fold step initial done) = Fold step' initial' done'
968--
968--
969-- @
969-- @
970--
970--
971−-- > lsessionsOf n split collect = many collect (takeByTime n split)
971+-- > intervalsOf n split collect = many collect (takeByTime n split)
972--
972--
973-- /Internal/
973-- /Internal/
974--
974--
975−{-# INLINE lsessionsOf #-}
975+{-# INLINE intervalsOf #-}
976−lsessionsOf :: MonadAsync m => Double -> Fold m a b -> Fold m b c -> Fold m a c
976+intervalsOf :: MonadAsync m => Double -> Fold m a b -> Fold m b c -> Fold m a c
977−lsessionsOf n split collect = many collect (takeByTime n split)
977+intervalsOf n split collect = many collect (takeByTime n split)