on master help sign in
Move the zip and unzip operations in export list
d1b678fHarendra Kumar
core/src/Streamly/Internal/Data/Fold.hs+15−12
@@ -130,6 +130,10 @@ module Streamly.Internal.Data.Fold
130 , postscan
130 , postscan
131 , indexed
131 , indexed
132
132
133+ -- ** Zipping Input
134+ , zipWithM
135+ , zip
136+
133 -- ** Filtering
137 -- ** Filtering
134 , filter
138 , filter
135 , filterM
139 , filterM
@@ -189,6 +193,14 @@ module Streamly.Internal.Data.Fold
189 -- , distributeFst
193 -- , distributeFst
190 -- , distributeMin
194 -- , distributeMin
191
195
196+ -- ** Unzipping
197+ , unzip
198+ -- These two can be expressed using lmap/lmapM and unzip
199+ , unzipWith
200+ , unzipWithM
201+ , unzipWithFstM
202+ , unzipWithMinM
203+
192 -- ** Parallel Alternative
204 -- ** Parallel Alternative
193 , shortest
205 , shortest
194 , longest
206 , longest
@@ -231,18 +243,6 @@ module Streamly.Internal.Data.Fold
231 -- , classifyWithSel
243 -- , classifyWithSel
232 -- , classifyWithMin
244 -- , classifyWithMin
233
245
234− -- ** Unzipping
235− , unzip
236− -- These two can be expressed using lmap/lmapM and unzip
237− , unzipWith
238− , unzipWithM
239− , unzipWithFstM
240− , unzipWithMinM
241−
242− -- ** Zipping
243− , zipWithM
244− , zip
245−
246 -- ** Splitting
246 -- ** Splitting
247 , many
247 , many
248 , chunksOf
248 , chunksOf
@@ -1923,6 +1923,9 @@ unzip = unzipWith id
1923-- Combining streams and folds - Zipping
1923-- Combining streams and folds - Zipping
1924------------------------------------------------------------------------------
1924------------------------------------------------------------------------------
1925
1925
1926+-- XXX These can be implemented using the fold scan, using the stream as a
1927+-- state.
1928+--
1926-- | Zip a stream with the input of a fold using the supplied function.
1929-- | Zip a stream with the input of a fold using the supplied function.
1927--
1930--
1928-- /Unimplemented/
1931-- /Unimplemented/