vector->string - convert a vector of characters to a string
(import (scheme base)) ;R7RS
(vector->string vector start)
(vector->string vector start end)
Returns a newly allocated
string of the objects contained in the elements of
The order of the characters is preserved.
defaults to 0
defaults to the length of
- Loko Scheme
There is a single unique empty string object, so the returned string
will not always be newly allocated.
Returns a single value; a string.
(vector->string #(#\1 #\2 #\3)) => "123"
R7RS says that this procedure and a few others were added in order to
round out the sequence operations.
This procedure is unique to R7RS. Compatible procedures can be found
in SRFI-133 and SRFI-152.
It is an error to pass the wrong number of arguments,
and to pass an argument that is outside its domain.
must be a vector of
characters supported by the implementation,
must be non-negative and not greater than
must not be greater than the length of
The only characters that must be supported by
R7RS implementations are the ASCII characters minus NUL.
Implementations may signal an error, extend the procedure's
domain of definition to include such arguments,
or fail catastrophically.
This procedure first appeared in R7RS.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Markup created by unroff 1.0sc, March 04, 2023.