Data.Vector.Unboxed.Mutable

Mutable vectors of primitive types

data family MVector s a

type IOVector

type STVector s

class Unbox a

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

Zipping and unzipping

zip

zip3

zip4

zip5

zip6

unzip

unzip3

unzip4

unzip5

unzip6

Accessing individual elements

read

write

swap

unsafeRead

unsafeWrite

unsafeSwap

Modifying vectors

Filling and copying

set

copy

move

unsafeCopy

unsafeMove