Copyright | (c) The University of Glasgow 2001 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | experimental |
Portability | non-portable (uses Data.Array.IArray) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Data.Array.Unboxed
Description
Unboxed immutable arrays.
Arrays with unboxed elements. Instances ofIArray
are provided forUArray
with certain element types (Int
,Float
,Char
, etc.; see theUArray
class for a full list).
AUArray
will generally be more efficient (in terms of both time and space) than the equivalentArray
with the same element type. However,UArray
is strict in its elements - so don't useUArray
if you require the non-strictness thatArray
provides.
Because theIArray
interface provides operations overloaded on the type of the array, it should be possible to just change the array type being used by a program from sayArray
toUArray
to get the benefits of unboxed arrays (don't forget to importData.Array.Unboxed instead ofData.Array).
moduleData.Array.IArray
Produced byHaddock version 2.23.0