@@ -0,0 +1,59 @@
1+-- |
2+-- Module : Streamly.Data.Array.Unboxed.Mut
3+-- Copyright : (c) 2022 Composewell Technologies
4+--
5+-- License : BSD3
6+-- Maintainer : streamly@composewell.com
7+-- Stability : released
8+-- Portability : GHC
9+--
10+-- This module provides mutable arrays suitable for long lived data storage,
11+-- random access, and mutation.
12+--
13+
14+module Streamly.Data.Array.Unboxed.Mut
15+ (
16+ Array
17+
18+ -- * Arrays
19+ -- ** Construction
20+
21+ -- Uninitialized Arrays
22+ , newArray
23+
24+ -- From containers
25+ , fromListN
26+ , fromList
27+ , writeN -- drop new
28+ , write -- full buffer
29+ -- writeLastN
30+
31+ -- ** Appending elements
32+ , snoc
33+
34+ -- ** Appending streams
35+ , appendN
36+ , append
37+
38+ -- ** Inplace mutation
39+ , putIndex
40+
41+ -- ** Random access
42+ , getIndex
43+
44+ -- ** Elimination
45+ , toList
46+ , read
47+ , readRev
48+
49+ -- ** Casting
50+ , cast
51+ , asBytes
52+
53+ -- ** Size
54+ , length
55+ )
56+where
57+
58+import Prelude hiding (length, read)
59+import Streamly.Internal.Data.Array.Unboxed.Mut