array-primops-0.2.0.1: Extra foreign primops for primitive arrays

Safe HaskellNone
LanguageHaskell2010

GHC.Prim.Array

Synopsis

Documentation

consArray# :: a -> Array# a -> Array# a Source #

Prepend an element to an array.

snocArray# :: Array# a -> a -> Array# a Source #

Append an element to the end of an array.

snocArrayWithPadding# :: Int# -> a -> Array# a -> a -> Array# a Source #

Append an element to the array and pad the end with another element. The first argument is the size of the padding, the second is the pad element.

insertArray# :: Int# -> a -> Array# a -> Array# a Source #

Insert new element at position.

deleteArray# :: Int# -> Array# a -> Array# a Source #

Delete element at position.