Moduleghc-lib-parser-9.14.1.20251220GHC2021
GHC.Data.SmallArray
Small-array
- 3 types
- 13 values
- Packageghc-lib-parser-9.14.1.20251220
- Exports16
- 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