| string->vector(3scm) | Scheme Programmer's Manual | string->vector(3scm) |
NAME
string->vector - convert a string to a vector
LIBRARY
(import (scheme base)) ;R7RS
SYNOPSIS
(string->vector string) (string->vector string start) (string->vector string start end)
DESCRIPTION
Returns a newly created vector initialized to the elements of string between start (inclusive) and end (exclusive). The order of the characters is preserved. If omitted, start defaults to 0 and end defaults to the length of string.
RETURN VALUES
Returns a single value; a vector object.
EXAMPLES
(string->vector "ABC") => #(#\A #\B #\C)
ERRORS
It is an error to pass the wrong number of arguments, and to pass an argument that is outside its domain. Implementations may signal an error, extend the procedure's domain of definition to include such arguments, or fail catastrophically.
SEE ALSO
string->list(3scm)
STANDARDS
R7RS, SRFI-133, SRFI-140, SRFI-152
HISTORY
This procedure first appeared in R7RS.
AUTHORS
This page is part of the scheme-manpages project. It includes materials from the RnRS documents. More information can be found at https://weinholt.se/scheme/manpages/.
| 2022-05-14 |