on master help sign in
Rename Fold.lsessionsOf to Fold.intervalsOf
commit436af69a2fdbef37dda806c2c451c2fcee53855d authorAdithya Kumar <adithya@composewell.com> dateFri 15 Jan 2021, 18:14 (6 years ago) parent0753435
2 files changed+6−6
src/Streamly/Internal/Data/Fold.hs+1−1 src/Streamly/Internal/Data/Fold/Types.hs+5−5
src/Streamly/Internal/Data/Fold.hs+1−1
@@ -213,7 +213,7 @@ module Streamly.Internal.Data.Fold
213213
214214 -- * Nesting
215215 , many
216− , lsessionsOf
216+ , intervalsOf
217217 , chunksOf
218218 , chunksBetween
219219
src/Streamly/Internal/Data/Fold/Types.hs+5−5
@@ -201,7 +201,7 @@ module Streamly.Internal.Data.Fold.Types
201201 -- * Nested Application
202202 , concatMap
203203 , many
204− , lsessionsOf
204+ , intervalsOf
205205 , chunksOf
206206 , chunksOf2
207207
@@ -968,10 +968,10 @@ takeByTime n (Fold step initial done) = Fold step' initial' done'
968968--
969969-- @
970970--
971−-- > lsessionsOf n split collect = many collect (takeByTime n split)
971+-- > intervalsOf n split collect = many collect (takeByTime n split)
972972--
973973-- /Internal/
974974--
975−{-# INLINE lsessionsOf #-}
976−lsessionsOf :: 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)
975+{-# INLINE intervalsOf #-}
976+intervalsOf :: MonadAsync m => Double -> Fold m a b -> Fold m b c -> Fold m a c
977+intervalsOf n split collect = many collect (takeByTime n split)