Data.Vector.Mutable

Mutable boxed vectors

data MVector s a

type IOVector

type STVector s

Accessors

Length information

length

null

Extracting subvectors

slice

init

tail

take

drop

splitAt

unsafeSlice

unsafeInit

unsafeTail

unsafeTake

unsafeDrop

Overlapping

overlaps

Construction

Initialisation

new

unsafeNew

replicate

replicateM

clone

Growing

grow

unsafeGrow

Restricting memory usage

clear

Accessing individual elements

read

write

swap

unsafeRead

unsafeWrite

unsafeSwap

Modifying vectors

Filling and copying

set

copy

move

unsafeCopy

unsafeMove