chickadee » srfi-135 » textual-concatenate-reverse

(textual-concatenate-reverse textual-list [final-textual end]) → textprocedure

With no optional arguments, calling this procedure is equivalent to

(textual-concatenate (reverse textual-list))

If the optional argument final-textual is specified, it is effectively consed onto the beginning of textual-list before performing the list-reverse and textual-concatenate operations.

If the optional argument end is given, only the characters up to but not including end in final-textual are added to the result, thus producing

(textual-concatenate
 (reverse (cons (subtext final-textual 0 end)
                textual-list)))

For example:

(textual-concatenate-reverse '(" must be" "Hello, I") " going.XXXX" 7)
 ⇒ «Hello, I must be going.»