Scheme base library for vectors
. __Authors:__ CSCM Contributor ([`[email protected]`](mailto:[email protected])).
'$scml_exports'() -> [{scm_symbol(), scmi_nip()}]
'list->vector'(Objs::[scm_obj()]) -> scm_vector()
Returns a vector constructed from the elements in the list.
'make-vector'(K::scm_k()) -> scm_vector()
Equivalent to 'make-vector'(K, '#f')
.
'make-vector'(K::scm_k(), Obj::scm_obj()) -> scm_vector()
Returns a vector of k elements.
'string->vector'(S::scm_string()) -> scm_vector()
Equivalent to 'list->vector'('string->list'(S, 0, 'string-length'(S)))
.
'string->vector'(S::scm_string(), Start::scm_start()) -> scm_vector()
Equivalent to 'list->vector'('string->list'(S, Start,'string-length'(S)))
.
'string->vector'(S::scm_string(), Start::scm_start(), End::scm_end()) -> scm_vector()
Equivalent to 'list->vector'('string->list'(S, Start, End))
.
'vector->list'(Vector::scm_vector()) -> [scm_obj()]
Equivalent to 'vector->list'(V, 0, 'vector-length'(V))
.
'vector->list'(Vector::scm_vector(), Start::scm_start()) -> [scm_obj()]
Equivalent to 'vector->list'(V, Start, 'vector-length'(V))
.
'vector->list'(Vector::scm_vector(), Start::scm_start(), End::scm_end()) -> [scm_obj()]
Returns a list of the elements of vector between start and end.
'vector->string'(V::scm_vector()) -> scm_string()
Equivalent to 'vector->string'(V, 0, 'vector-length'(V))
.
'vector->string'(V::scm_vector(), Start::scm_start()) -> scm_string()
Equivalent to 'vector->string'(V, Start, 'vector-length'(V))
.
'vector->string'(V::scm_vector(), Start::scm_start(), End::scm_end()) -> scm_string()
Equivalent to 'list->string'('vector->list'(V, Start, End))
.
'vector-append'(Vs::[scm_vector(), ...]) -> scm_vector()
Returns a vector whose elements are the concatenation of the elements in the given vectors.
'vector-copy!'(To::scm_vector(), At::scm_k(), From::scm_vector()) -> scm_false()
unsupported
'vector-copy!'(To::scm_vector(), At::scm_k(), From::scm_vector(), Start::scm_start()) -> scm_false()
unsupported
'vector-copy!'(To::scm_vector(), At::scm_k(), From::scm_vector(), Start::scm_start(), End::scm_end()) -> scm_false()
unsupported
'vector-copy'(V::scm_vector()) -> scm_vector()
Equivalent to 'vector-copy'(V, 0, 'vector-length'(V))
.
'vector-copy'(Vector::scm_vector(), Start::scm_start()) -> scm_vector()
Equivalent to 'vector-copy'(V, Start, 'vector-length'(V))
.
'vector-copy'(V::scm_vector(), Start::scm_start(), End::scm_end()) -> scm_vector()
Returns a vector constructed from the elements of vector beginning with index start and ending with index end.
'vector-fill!'(V::scm_vector(), Fill::scm_obj()) -> scm_false()
unsupported
'vector-fill!'(V::scm_vector(), Fill::scm_obj(), Start::scm_start()) -> scm_false()
unsupported
'vector-fill!'(V::scm_vector(), Fill::scm_obj(), Start::scm_start(), End::scm_end()) -> scm_false()
unsupported
'vector-length'(Vector::scm_vector()) -> scm_k()
Returns the number of elements in the given vector.
'vector-ref'(Vector::scm_vector(), K::scm_k()) -> scm_obj()
Returns element k of vector using zero-origin indexing. It is an error if k is not a valid index of vector.
'vector-set!'(V::scm_vector(), K::scm_k(), Obj::scm_obj()) -> scm_false()
unsupported
'vector?'(Vector::scm_obj()) -> scm_boolean()
Returns #t if obj is a vector, otherwise returns #f.
vector(Objs::[scm_obj(), ...]) -> scm_vector()
Returns a vector whose elements contain the given arguments.