list->string

Synopsis

(list->string list)

Parameters

  • list

Description

list must consist entirely of characters.

list->string is the functional inverse of string->list. A program might use both procedures together, first converting a string into a list, then operating on this list to produce a new list, and finally converting the new list back into a string.

list->string appears in the Revised5 Report but not in the ANSI/IEEE standard. Inlab Scheme implements list->string as a primitive procedure in C.

Side Effects

Return Value

A string consisting of all characters in list is returned.

Example

> list->string
#<primitive-procedure list->string>
> (list->string '())
""
> (list->string '(#\a #\b #\c))
"abc"
> (list->string
 (map char-upcase
      (string->list "abc")))
"ABC"
>