chickadee » srfi-13 » reverse-list->string

reverse-list->string char-listprocedure

An efficient implementation of (compose list->string reverse):

(reverse-list->string '(#\a #\B #\c)) -> "cBa"

This is a common idiom in the epilog of string-processing loops that accumulate an answer in a reverse-order list. (See also string-concatenate-reverse for the "chunked" variant.)