vector-ref -- r7rs Definition accessor;
vector-ref (from vonuvoli);Procedure variants:
((vector-not-empty range-offset) -> (any))
vector-not-empty;range-offset;any;scheme:base -- (scheme base);scheme -- (scheme);(vector-ref vector k)Domain: It is an error if
kis not a valid index ofvector.The
vector-refprocedure returns the contents of elementkofvector.(vector-ref '#(1 1 2 3 5 8 13 21) 5) ===> 8 (vector-ref '#(1 1 2 3 5 8 13 21) (exact (round (* 2 (acos -1))))) ===> 13
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.