@@ -112,6 +112,7 @@ module Streamly.Internal.Data.Fold
113 --, lsequence
113 --, lsequence
115 , indexed
116 , indexed
117 -- ** Filtering
118 -- ** Filtering
@@ -375,6 +376,16 @@ transform (Pipe pstep1 pstep2 pinitial) (Fold fstep finitial fextract) =
376 extract (Tuple' _ fs) = fextract fs
377 extract (Tuple' _ fs) = fextract fs
379+-- See StreamD/Transform.scanOnce for implementing this.
381+-- | Scan the input of a 'Fold' to change it in a stateful manner using another
386+scan :: Fold m a b -> Fold m b c -> Fold m a c
378------------------------------------------------------------------------------
389------------------------------------------------------------------------------
379-- Left folds
390-- Left folds
380------------------------------------------------------------------------------
391------------------------------------------------------------------------------