Moduleghc-9.10.3GHC2021
GHC.Data.SmallArray
Small-array
- 2 types
- 10 values
- Packageghc-9.10.3
- Exports12
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceSmallArray.hs
Constructors
value
newSmallArray :: Intsize
-> ainitial contents
-> State# s-> (# State# s, SmallMutableArray s a #)
value
freezeSmallArray :: SmallMutableArray s asource
-> Intoffset
-> Intlength
-> State# s-> (# State# s, SmallArray a #)
Copy and freeze a slice of a mutable array.
Freeze a mutable array (no copy!)
Index a small-array (no bounds checking!)
Get the size of a SmallArray
Convert a list into an array.
Map a function over the elements of a SmallArray
Fold the values of a SmallArray into a 'Monoid m' of choice
Force the elements of the given SmallArray