@@ -23,7 +23,9 @@
25module Streamly.Internal.Data.Array.Foreign.Mut
25module Streamly.Internal.Data.Array.Foreign.Mut
27 -- , writeIndex
29 -- , writeIndex
28 -- , writeFrom -- start writing at the given position
30 -- , writeFrom -- start writing at the given position
29 -- , writeFromRev
31 -- , writeFromRev
@@ -35,7 +37,10 @@ module Streamly.Internal.Data.Array.Foreign.Mut
35 -- , writeChunksOfFrom
37 -- , writeChunksOfFrom
38 , writeIndex
41 , writeIndex
39 --, writeIndices
44 --, writeIndices
40 --, writeRanges
45 --, writeRanges
@@ -44,6 +49,29 @@ module Streamly.Internal.Data.Array.Foreign.Mut
44 -- , shuffleBy
49 -- , shuffleBy
45 -- , foldtWith
50 -- , foldtWith
46 -- , foldbWith
51 -- , foldbWith
57+ -- * Composable Folds
@@ -51,7 +79,8 @@ import Control.Monad.IO.Class (MonadIO(..))
51import Foreign.Storable (Storable(..))
79import Foreign.Storable (Storable(..))
52import Streamly.Internal.BaseCompat (unsafeWithForeignPtr)
80import Streamly.Internal.BaseCompat (unsafeWithForeignPtr)
54−import Prelude hiding (length)
82+import Prelude hiding (foldr, length, read, splitAt)
55import Streamly.Internal.Data.Array.Foreign.Mut.Type
84import Streamly.Internal.Data.Array.Foreign.Mut.Type
57-- | /O(1)/ Write the given element at the given index in the array.
86-- | /O(1)/ Write the given element at the given index in the array.