RIO.Vector

Immutable vectors

class Vector v a

Accessors

Length information

length

null

Indexing

(!?)

Extracting subvectors

slice

take

drop

splitAt

Construction

Initialisation

empty

singleton

replicate

generate

iterateN

Monadic initialisation

replicateM

generateM

iterateNM

create

createT

Unfolding

unfoldr

unfoldrN

unfoldrM

unfoldrNM

constructN

constructrN

Enumeration

enumFromN

enumFromStepN

enumFromTo

enumFromThenTo

Concatenation

cons

snoc

(++)

concat

concatNE

Restricting memory usage

force

Modifying vectors

Permutations

reverse

Safe destructive update

modify

Elementwise operations

Indexing

indexed

Mapping

map

imap

concatMap

Monadic mapping

mapM

imapM

mapM_

imapM_

forM

forM_

Zipping

zipWith

zipWith3

zipWith4

zipWith5

zipWith6

izipWith

izipWith3

izipWith4

izipWith5

izipWith6

zip

zip3

zip4

zip5

zip6

Monadic zipping

zipWithM

izipWithM

zipWithM_

izipWithM_

Unzipping

unzip

unzip3

unzip4

unzip5

unzip6

Working with predicates

Filtering

filter

ifilter

uniq

mapMaybe

imapMaybe

filterM

takeWhile

dropWhile

Partitioning

partition

unstablePartition

span

break

Searching

elem

notElem

find

findIndex

findIndices

elemIndex

elemIndices

Folding

foldl

foldl'

foldr

foldr'

ifoldl

ifoldl'

ifoldr

ifoldr'

Specialised folds

all

any

and

or

sum

product

Monadic folds

foldM

ifoldM

foldM'

ifoldM'

foldM_

ifoldM_

foldM'_

ifoldM'_

Monadic sequencing

sequence

sequence_

Prefix sums (scans)

prescanl

prescanl'

postscanl

postscanl'

scanl

scanl'

iscanl

iscanl'

prescanr

prescanr'

postscanr

postscanr'

scanr

scanr'

iscanr

iscanr'

Conversions

Lists

toList

fromList

fromListN

Different vector types

convert

Mutable vectors

freeze

thaw

copy

Fusion support

Conversion to/from Bundles

stream

unstream

streamR

unstreamR

Recycling support

new

clone

Utilities

Comparisons

eq

cmp

eqBy

cmpBy

Show and Read

showsPrec

readPrec

liftShowsPrec

liftReadsPrec

Data and Typeable

gfoldl

dataCast

mkType