www.delorie.com/gnu/docs/guile/guile_472.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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]
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.

string-reverse! modifies the argument string and returns an unspecified value.

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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003