Moduleghc-lib-parser-9.14.1.20251220GHC2021
GHC.Data.SmallArray
Small-array
Contents
Synopsis
- data SmallMutableArray
- data SmallArray
- value newSmallArray
- value writeSmallArray
- value freezeSmallArray
- value unsafeFreezeSmallArray
- value indexSmallArray
- value sizeofSmallArray
- value listToArray
- value mapSmallArray
- value foldMapSmallArray
- value rnfSmallArray
- type SmallMutableArrayIO
- value newSmallArrayIO
- value writeSmallArrayIO
- value unsafeFreezeSmallArrayIO
- 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