string->vector -- r7rs Definition converter;
string->vector (from vonuvoli);Procedure variants:
((string-empty) -> (vector-empty))
string-empty;vector-empty;((string-not-empty) -> (vector-not-empty))
string-not-empty;vector-not-empty;((string range-start) -> (vector))
string;range-start;vector;((string range-start range-end) -> (vector))
string;range-start;range-end;vector;scheme:base -- (scheme base);scheme -- (scheme);(vector->string vector) (vector->string vector start) (vector->string vector start end) (string->vector string) (string->vector string start) (string->vector string start end)Domain: It is an error if any element of
vectorbetweenstartandendis not a character.The
vector->stringprocedure returns a newly allocated string of the objects contained in the elements ofvectorbetweenstartandend. Thestring->vectorprocedure returns a newly created vector initialized to the elements of the stringstringbetweenstartandend.In both procedures, order is preserved.
(string->vector "ABC") ===> #(#\A #\B #\C) (vector->string #(#\1 #\2 #\3) ===> "123"
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.
string-empty;vector-empty;string-not-empty;vector-not-empty;string;range-start;vector;range-end;