on fa417eb help sign in
59 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 , newArray
24 -- From containers
25 , fromListN
26 , fromList
27 , writeN -- drop new
28 , write -- full buffer
29 -- writeLastN
31 -- ** Appending elements
32 , snoc
34 -- ** Appending streams
35 , appendN
36 , append
38 -- ** Inplace mutation
39 , putIndex
41 -- ** Random access
42 , getIndex
44 -- ** Elimination
45 , toList
46 , read
47 , readRev
49 -- ** Casting
50 , cast
51 , asBytes
53 -- ** Size
54 , length
55 )
56where
58import Prelude hiding (length, read)
59import Streamly.Internal.Data.Array.Unboxed.Mut