Next: , Previous: SRFI-13 Case Mapping, Up: SRFI-13


39.11.11 Reverse/Append

One appending procedure, string-append is the same in R5RS and in SRFI-13, so it is not redefined.

— Scheme Procedure: string-reverse str [start [end]]

Reverse the string str. The optional arguments start and end delimit the region of str to operate on.

— Scheme Procedure: string-reverse! str [start [end]]

Reverse the string str in-place. The optional arguments start and end delimit the region of str to operate on. The return value is unspecified.

— Scheme Procedure: string-append/shared [ls ...]

Like string-append, but the result may share memory with the argument strings.

— Scheme Procedure: string-concatenate ls

Append the elements of ls (which must be strings) together into a single string. Guaranteed to return a freshly allocated string.

— Scheme Procedure: string-concatenate/shared ls

Like string-concatenate, but the result may share memory with the strings in the list ls.

— Scheme Procedure: string-concatenate-reverse ls [final_string [end]]

Without optional arguments, this procedure is equivalent to

          (string-concatenate (reverse ls))

If the optional argument final_string is specified, it is consed onto the beginning to ls before performing the list-reverse and string-concatenate operations. If end is given, only the characters of final_string up to index end are used.

Guaranteed to return a freshly allocated string.

— Scheme Procedure: string-concatenate-reverse/shared ls [final_string [end]]

Like string-concatenate-reverse, but the result may share memory with the the strings in the ls arguments.