@@ -46,6 +46,17 @@ module Streamly.Internal.Data.MutArray.Type
47 , newArrayWith
47 , newArrayWith
54+ -- | Get a subarray without copying
57+ , splitAt -- XXX should be able to express using getSlice
49 -- *** From streams
60 -- *** From streams
50 , ArrayUnsafe (..)
61 , ArrayUnsafe (..)
51 , writeNWithUnsafe
62 , writeNWithUnsafe
@@ -114,6 +125,16 @@ module Streamly.Internal.Data.MutArray.Type
114 , writeAppendWith
125 , writeAppendWith
115 , writeAppend
126 , writeAppend
128+ -- *** Appending arrays
136+ -- , appendSliceFrom
117 -- ** Eliminating and Reading
138 -- ** Eliminating and Reading
119 -- *** To streams
140 -- *** To streams
@@ -184,45 +205,25 @@ module Streamly.Internal.Data.MutArray.Type
184 , byteCmp
205 , byteCmp
187− -- ** Arrays of arrays
208+ -- Arrays of arrays
188 -- We can add dimensionality parameter to the array type to get
209 -- We can add dimensionality parameter to the array type to get
189 -- multidimensional arrays. Multidimensional arrays would just be a
210 -- multidimensional arrays. Multidimensional arrays would just be a
190 -- convenience wrapper on top of single dimensional arrays.
211 -- convenience wrapper on top of single dimensional arrays.
192− -- | Operations dealing with multiple arrays, streams of arrays or
213+ -- ** Streams of Arrays
193− -- multidimensional array representations.
214+ -- *** Group a stream into arrays
195− -- *** Construct from streams
196 , chunksOf
215 , chunksOf
197 , pinnedChunksOf
216 , pinnedChunksOf
198 , buildChunks
217 , buildChunks
200− -- *** Eliminate to streams
219+ -- *** Flatten a stream of arrays
201 , concatChunks
220 , concatChunks
202 , concatChunksRev
221 , concatChunksRev
204− -- *** Construct from arrays
223+ -- *** Split an array into slices
205− -- get chunks without copying
208 -- , getSlicesFromLenN
224 -- , getSlicesFromLenN
209− , splitAt -- XXX should be able to express using getSlice
210 , splitOn
225 , splitOn
211− , breakOn
226+ -- , slicesOf
213− -- ** Cloning arrays
217− -- ** Appending arrays
225− -- , appendSliceFrom
227 -- ** Utilities
228 -- ** Utilities
228 , roundUpToPower2
229 , roundUpToPower2