string - construct a string from the supplied characters
(import (rnrs)) ;R6RS
(import (rnrs base)) ;R6RS
(import (scheme r5rs)) ;R7RS
(import (scheme base)) ;R7RS
(string char ...)
Returns a newly allocated string composed of the arguments.
Some implementations have a single empty string object. See
Returns a single value; a string.
(string #\Q #\u #\u #\x) => "Quux"
This procedure is mostly used when building quite small strings. It's
one way to convert a character to a string.
This procedure works the same since R4RS, notwithstanding the limits
on strings that an implementation may have.
This procedure can raise exceptions with the following condition types:
- &assertion (R6RS)
An argument was not a character.
- Unsupported characters (R7RS)
It is an error to pass this procedure a character which the
implementation does not support. 7-bit ASCII (except #\null)
must be supported. Any other character is optional and potentially an
error. You can use the
feature identifier in
to check if all of Unicode 6.0 is supported.
The assertions described above are errors.
Implementations may signal an error, extend the procedure's
domain of definition to include such arguments,
or fail catastrophically.
First appeared in R4RS.
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.