@@ -46,6 +46,17 @@ module Streamly.Internal.Data.MutArray.Type
4646 , new
4747 , newArrayWith
4848
49+ -- ** Cloning arrays
50+ , clone
51+ , pinnedClone
52+
53+ -- ** Slicing
54+ -- | Get a subarray without copying
55+ , getSliceUnsafe
56+ , getSlice
57+ , splitAt -- XXX should be able to express using getSlice
58+ , breakOn
59+
4960 -- *** From streams
5061 , ArrayUnsafe (..)
5162 , writeNWithUnsafe
@@ -114,6 +125,16 @@ module Streamly.Internal.Data.MutArray.Type
114125 , writeAppendWith
115126 , writeAppend
116127
128+ -- *** Appending arrays
129+ , spliceCopy
130+ , spliceWith
131+ , splice
132+ , spliceExp
133+ , spliceUnsafe
134+ -- , putSlice
135+ -- , appendSlice
136+ -- , appendSliceFrom
137+
117138 -- ** Eliminating and Reading
118139
119140 -- *** To streams
@@ -184,45 +205,25 @@ module Streamly.Internal.Data.MutArray.Type
184205 , byteCmp
185206 , byteEq
186207
187− -- ** Arrays of arrays
208+ -- Arrays of arrays
188209 -- We can add dimensionality parameter to the array type to get
189210 -- multidimensional arrays. Multidimensional arrays would just be a
190211 -- convenience wrapper on top of single dimensional arrays.
191212
192− -- | Operations dealing with multiple arrays, streams of arrays or
193− -- multidimensional array representations.
194−
195− -- *** Construct from streams
213+ -- ** Streams of Arrays
214+ -- *** Group a stream into arrays
196215 , chunksOf
197216 , pinnedChunksOf
198217 , buildChunks
199218
200− -- *** Eliminate to streams
219+ -- *** Flatten a stream of arrays
201220 , concatChunks
202221 , concatChunksRev
203222
204− -- *** Construct from arrays
205− -- get chunks without copying
206− , getSliceUnsafe
207− , getSlice
223+ -- *** Split an array into slices
208224 -- , getSlicesFromLenN
209− , splitAt -- XXX should be able to express using getSlice
210225 , splitOn
211− , breakOn
212−
213− -- ** Cloning arrays
214− , clone
215− , pinnedClone
216−
217− -- ** Appending arrays
218− , spliceCopy
219− , spliceWith
220− , splice
221− , spliceExp
222− , spliceUnsafe
223− -- , putSlice
224− -- , appendSlice
225− -- , appendSliceFrom
226+ -- , slicesOf
226227
227228 -- ** Utilities
228229 , roundUpToPower2