Next: , Up: built-in vectors   [Contents][Index]


6.15.1 Base vector type

Core Type: <vector>
Parent Type: <top>

Type of vector values.

Constructor on <vector>: <vector> type-constructor obj

The constructor is vector.

Type predicate on <vector>: <boolean> type-predicate obj

The type predicate is vector?. Return #t if obj is a vector object; otherwise return #f.

Equality predicate on <vector>: <boolean> equality-predicate this {vec <vector>}

The equality predicate is equal?.

Hash function on <vector>: <non-negative-fixnum> hash-function this

The hash function is vector-hash.

Inspection

Method on <vector>: <non-negative-fixnum> length this

Apply vector-length to the instance.

Accessors and mutators

Method on <vector>: <void> fill! this obj

Apply vector-fill! to the instance and the argument.

Other constructors

Method on <vector>: <vector> subvector this begin end

Apply subvector to the instance and the arguments.

Method on <vector>: <vector> append this vec

Apply vector-append to the instance and the arguments.

Method on <vector>: <vector> resize this new-length
Method on <vector>: <vector> resize this new-length fill

Apply vector-resize to the instance and the arguments.

Iteration and searching

Method on <vector>: <vector> map this proc vec

Apply vector-map to the instance and the arguments.

Method on <vector>: <void> for-each this proc vec

Apply vector-for-each to the instance and the arguments.

Method on <vector>: <top> for-all this proc vec

Apply vector-for-all to the instance and the arguments.

Method on <vector>: <top> exists this proc vec

Apply vector-exists to the instance and the arguments.

Method on <vector>: <top> find this proc

Apply vector-find to the instance and the argument.

Method on <vector>: <top> fold-left this proc knil vec

Apply vector-fold-left to the instance and the arguments.

Method on <vector>: <top> fold-right this proc knil vec

Apply vector-fold-right to the instance and the arguments.

Sorting

Method on <vector>: <vector> sort this proc
Method on <vector>: <vector> sort! this proc

Apply vector-sort or vector-sort! to the instance and the argument.

Conversion

Method on <vector>: <list> list this

Apply vector->list to the instance.


Next: , Up: built-in vectors   [Contents][Index]