string->list

Synopsis

(string->list string)

Parameters

  • string

Description

string->list allows a string to be converted into a list, so that Scheme’s list-processing operations may be applied to the processing of strings. string->list appears in the Revised5 Report but not in the ANSI/IEEE standard. Inlab Scheme implements string->list as a primitive procedure in C.

Side Effects

Return Value

A list of characters is returned.

Example

> (string->list "")
()
> (string->list "abc")
(#\a #\b #\c)
> (map char-upcase (string->list "abc"))
(#\A #\B #\C)
>