@@ -549,11 +549,6 @@ module Streamly.Prelude
549 -- trimming sequences
549 -- trimming sequences
550 , stripPrefix
550 , stripPrefix
552− -- * Parallel Function Application
557 -- * Transformation
552 -- * Transformation
559 -- ** Mapping
554 -- ** Mapping
@@ -572,7 +567,7 @@ module Streamly.Prelude
572 , sequence
567 , sequence
575− -- ** Special Maps
570+ -- ** Mapping Side Effects
@@ -638,7 +633,7 @@ module Streamly.Prelude
638 , scanl1'
633 , scanl1'
639 , scanl1M'
634 , scanl1M'
641− -- ** Scan Using Fold
636+ -- ** Scanning By 'Fold'
643 , postscan
638 , postscan
@@ -647,20 +642,20 @@ module Streamly.Prelude
647 -- imperative terms a filter over a stream corresponds to a loop with a
642 -- imperative terms a filter over a stream corresponds to a loop with a
648 -- @continue@ clause for the cases when the predicate fails.
643 -- @continue@ clause for the cases when the predicate fails.
651 , filterM
647 , filterM
653− -- ** Mapping Filters
654− -- | Mapping along with filtering
659− -- ** Deleting Elements
660− -- | Deleting elements is a special case of de-interleaving streams.
651+ -- | Take or remove elements from one or both ends of a stream.
664 -- ** Inserting Elements
659 -- ** Inserting Elements
665 -- | Inserting elements is a special case of interleaving/merging streams.
660 -- | Inserting elements is a special case of interleaving/merging streams.
@@ -668,29 +663,15 @@ module Streamly.Prelude
668 , intersperseM
663 , intersperseM
669 , intersperse
664 , intersperse
666+ -- ** Reordering Elements
671 -- ** Indexing
669 -- ** Indexing
672 -- | Indexing can be considered as a special type of zipping where we zip a
670 -- | Indexing can be considered as a special type of zipping where we zip a
673 -- stream with an index stream.
671 -- stream with an index stream.
674 , indexed
672 , indexed
675 , indexedR
673 , indexedR
677− -- ** Reordering Elements
681− -- | Take or remove elements from one or both ends of a stream.
694 -- ** Searching
675 -- ** Searching
695 -- | Finding the presence or location of an element, a sequence of elements
676 -- | Finding the presence or location of an element, a sequence of elements
696 -- or another stream within a stream.
677 -- or another stream within a stream.
@@ -699,7 +680,30 @@ module Streamly.Prelude
699 , findIndices
680 , findIndices
700 , elemIndices
681 , elemIndices
687+ -- * Concurrent Transformation
688+ -- ** Concurrent Pipelines
693+ -- ** Concurrency Control
702− -- ** Splitting
706+ -- * Splitting
703 -- | In general we can express splitting in terms of parser combinators.
707 -- | In general we can express splitting in terms of parser combinators.
704 -- These are some common use functions for convenience and efficiency.
708 -- These are some common use functions for convenience and efficiency.
705 -- While parsers can fail these functions are designed to transform a
709 -- While parsers can fail these functions are designed to transform a
@@ -721,6 +725,11 @@ module Streamly.Prelude
721 -- segment is missing it is considered as empty, therefore, we never
725 -- segment is missing it is considered as empty, therefore, we never
722 -- encounter an error in parsing.
726 -- encounter an error in parsing.
724 -- -- ** Splitting By Elements
733 -- -- ** Splitting By Elements
725 , splitOn
734 , splitOn
726 , splitOnSuffix
735 , splitOnSuffix
@@ -860,19 +869,6 @@ module Streamly.Prelude
860 , finally
869 , finally
863− -- * Concurrency Control
876 -- * Stream Types
872 -- * Stream Types
877 -- | Stream types that end with a @T@ (e.g. 'SerialT') are monad
873 -- | Stream types that end with a @T@ (e.g. 'SerialT') are monad
878 -- transformers.
874 -- transformers.