This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home. For a version of this page that may be more recent, see VectorsCowan in WG2's repo for R7RS-large.

Vectors­Cowan

cowan
2014-07-27 16:04:53
3history
source

This is a preliminary list of procedures for the R7RS vector library. It is an upward compatible extension of the vector libraries of R5RS, R7RS-small, and SRFI 43, with additional procedures that are analogous to procedures in the SRFI 1 list library and the SRFI 13 string library. As a single exception, the vector-copy procedure in R7RS-small does not provide the fill argument present in SRFI 43.

The procedures that are already in R7RS-small will not be overridden by this library, and are included only for completeness.

Notation

Constructors

make-vector (R5RS), vector (R5RS), vector-unfold (SRFI 43), vector-unfold-right (SRFI 43), vector-copy (R7RS), vector-reverse-copy (SRFI 43), vector-append (R7RS), vector-concatenate (SRFI 43), vector-tabulate (SRFI 13), vector-join (SRFI 13)

Predicates

vector? (R5RS) vector-empty? (SRFI 43) vector= (SRFI 43)

Selectors

vector-ref (R5RS), vector-length (R5RS), vector-split-at (SRFI 1) vector-take (SRFI 13), vector-take-right (SRFI 13), vector-drop (SRFI 13), vector-drop-right (SRFI 13), vector-pad (SRFI 13), vector-pad-right (SRFI 13), vector-trim (SRFI 13), vector-trim-right (SRFI 13), vector-trim-both (SRFI 13)

Iteration

vector-fold (SRFI 43), vector-fold-right (SRFI 43), vector-reduce (SRFI 43), vector-reduce-right (SRFI 43), vector-map (SRFI 43), vector-map! (SRFI 43), vector-append-map (SRFI 1), vector-for-each (SRFI 43), vector-count (SRFI 43)

Filtering and partitioning

vector-filter (SRFI 1), vector-remove (SRFI 1), vector-partition (SRFI 1)

Searching

vector-find (SRFI 1), vector-index (SRFI 1), vector-contains (SRFI 13), vector-take-while (SRFI 1), vector-drop-while (SRFI 1), vector-span (SRFI 1), vector-break (SRFI 1),

Prefixes and suffixes

vector-prefix-length (SRFI 13), vector-suffix-length (SRFI 13), vector-prefix? (SRFI 13), vector-suffix? (SRFI 13),

Searching

vector-index (SRFI 43), vector-index-right (SRFI 43), vector-skip (SRFI 43), vector-skip-right (SRFI 43), vector-binary-search (SRFI 43), vector-any (SRFI 43), vector-every (SRFI 43),

Zip and unzip

vector-zip (SRFI 1), vector-unzip1 (SRFI 1), vector-unzip2 (SRFI 1), vector-unzip3 (SRFI 1), vector-unzip4 (SRFI 1), vector-unzip5 (SRFI 1),

Mutators

vector-set! (R5RS), vector-swap! (SRFI 43), vector-fill! (R5RS+), vector-reverse! (SRFI 43), vector-copy! (R7RS), vector-reverse-copy! (SRFI 43),

Conversion

vector->list (R5RS+), reverse-vector->list (SRFI 43), list->vector (R5RS), reverse-list->vector (SRFI 43), vector->string (R7RS), string->vector (R7RS)