on master help sign in
Rearrange the reducing section
392b897Harendra Kumar
src/Streamly/Prelude.hs+7−7
@@ -394,7 +394,6 @@ module Streamly.Prelude
394 -- $runningfolds
394 -- $runningfolds
395
395
396 , fold
396 , fold
397− , foldMany
398
397
399 -- ** Deconstruction
398 -- ** Deconstruction
400 -- | Functions ending in the general shape @t m a -> m (b, t m a)@
399 -- | Functions ending in the general shape @t m a -> m (b, t m a)@
@@ -785,7 +784,13 @@ module Streamly.Prelude
785 , concatMapFoldableWith
784 , concatMapFoldableWith
786 , concatForFoldableWith
785 , concatForFoldableWith
787
786
787+ -- * Reducing
788+ -- ** Nested Folds
789+ , foldMany
790+ , chunksOf
791+ , intervalsOf
792+
788− -- * Splitting
793+ -- ** Splitting
789 -- | In general we can express splitting in terms of parser combinators.
794 -- | In general we can express splitting in terms of parser combinators.
790 -- These are some common use functions for convenience and efficiency.
795 -- These are some common use functions for convenience and efficiency.
791 -- While parsers can fail these functions are designed to transform a
796 -- While parsers can fail these functions are designed to transform a
@@ -807,11 +812,6 @@ module Streamly.Prelude
807 -- segment is missing it is considered as empty, therefore, we never
812 -- segment is missing it is considered as empty, therefore, we never
808 -- encounter an error in parsing.
813 -- encounter an error in parsing.
809
814
810− -- -- ** Breaking
811−
812− , chunksOf
813− , intervalsOf
814−
815 -- -- ** Splitting By Elements
815 -- -- ** Splitting By Elements
816 , splitOn
816 , splitOn
817 , splitOnSuffix
817 , splitOnSuffix