string->list -- r7rs Definition converter;
string->list (from vonuvoli);Procedure variants:
((string-empty) -> (null))
string-empty;null;((string-not-empty) -> (list-proper-not-null))
string-not-empty;list-proper-not-null;((string range-start) -> (list-proper))
string;range-start;list-proper;((string range-start range-end) -> (list-proper))
string;range-start;range-end;list-proper;scheme:base -- (scheme base);scheme -- (scheme);(string->list string) (string->list string start) (string->list string start end) (list->string list)Domain: It is an error if any element of
listis not a character.The
string->listprocedure returns a newly allocated list of the characters ofstringbetweenstartandend.list->stringreturns a newly allocated string formed from the elements in the listlist. In both procedures, order is preserved.string->listandlist->stringare inverses so far asequal?is concerned.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.
string-empty;null;string-not-empty;list-proper-not-null;string;range-start;list-proper;range-end;