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

Safe HaskellNone
LanguageHaskell2010

GHC.Prim.SmallArray

Synopsis

Documentation

consSmallArray# :: a -> SmallArray# a -> SmallArray# a Source #

Prepend an element to an array.

snocSmallArray# :: SmallArray# a -> a -> SmallArray# a Source #

Append an element to the end of an array.

snocSmallArrayWithPadding# :: Int# -> a -> SmallArray# a -> a -> SmallArray# 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.

insertSmallArray# :: Int# -> a -> SmallArray# a -> SmallArray# a Source #

Insert new element at position.

deleteSmallArray# :: Int# -> SmallArray# a -> SmallArray# a Source #

Delete element at position.