on master help sign in
Move demux/classify ops to "Combinators" section
13bf3f5Harendra Kumar
core/src/Streamly/Data/Fold.hs+14−10
@@ -72,10 +72,6 @@ module Streamly.Data.Fold
72 , toListRev
72 , toListRev
73 , toSet
73 , toSet
74 , toIntSet
74 , toIntSet
75− , toMap
76− , toMapIO
77− , demuxToMap
78− , demuxToMapIO
79 , topBy
75 , topBy
80
76
81 -- ** Non-Empty Accumulators
77 -- ** Non-Empty Accumulators
@@ -97,10 +93,6 @@ module Streamly.Data.Fold
97 , uniqBy
93 , uniqBy
98 , nub
94 , nub
99 , nubInt
95 , nubInt
100− , classify
101− , classifyIO
102− , demux
103− , demuxIO
104
96
105 -- ** Terminating Folds
97 -- ** Terminating Folds
106 , one
98 , one
@@ -216,14 +208,26 @@ module Streamly.Data.Fold
216 --, partitionByMinM
208 --, partitionByMinM
217 --, partitionBy
209 --, partitionBy
218
210
219− -- ** Unzipping
211+ -- ** Key-value Collectors
220− , unzip
212+ , toMap
213+ , toMapIO
214+ , demuxToMap
215+ , demuxToMapIO
216+
217+ -- ** Key-value Scanners
218+ , classify
219+ , classifyIO
220+ , demux
221+ , demuxIO
221
222
222 -- ** Splitting
223 -- ** Splitting
223 , many
224 , many
224 , groupsOf
225 , groupsOf
225 -- , intervalsOf
226 -- , intervalsOf
226
227
228+ -- ** Unzipping
229+ , unzip
230+
227 -- ** Nesting
231 -- ** Nesting
228 , concatMap
232 , concatMap
229
233