on f390e53 help sign in
60 lines 1.0 kB history raw
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--
14module Streamly.Data.Array.Unboxed.Mut
15 (
16 Array
18 -- * Arrays
19 -- ** Construction
21 -- Uninitialized Arrays
22 , new
23 , newPinned
25 -- From containers
26 , fromListN
27 , fromList
28 , writeN -- drop new
29 , write -- full buffer
30 -- writeLastN
32 -- ** Appending elements
33 , snoc
35 -- ** Appending streams
36 , appendN
37 , append
39 -- ** Inplace mutation
40 , putIndex
42 -- ** Random access
43 , getIndex
45 -- ** Elimination
46 , toList
47 , read
48 , readRev
50 -- ** Casting
51 , cast
52 , asBytes
54 -- ** Size
55 , length
56 )
57where
59import Prelude hiding (length, read)
60import Streamly.Internal.Data.Array.Unboxed.Mut