chickadee » srfi-135 » reverse-list->text

reverse-list->text char-listprocedure

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

(reverse-list->text '(#\a #\B #\c)) → «cBa»

This is a common idiom in the epilogue of text-processing loops that accumulate their result using a list in reverse order. (See also textual-concatenate-reverse for the "chunked" variant.)