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

10.7.9 String reverse & append

Function: string-reverse s &optional start end
Function: string-reverse! s &optional start end
[SRFI-13] Returns a string in which the character posisions are reversed from s. string-reverse! modifies s.
 
(string-reverse "mahalo") => "olaham"
(string-reverse "mahalo" 3) => "ola"
(string-reverse "mahalo" 1 4) => "aha"

(let ((s (string-copy "mahalo")))
  (string-reverse! s 1 5)
  s)
  => "mlahao"

Function: string-concatenate string-list
[SRFI-13] Concatenates list of strings.
 
(string-concatenate '("humuhumu" "nukunuku" "apua" "`a"))
  => "humuhumunukunukuapua`a"

Function: string-concatenate/shared string-list
Function: string-append/shared s ...
[SRFI-13] "Shared" version of string-concatenate and string-append. In Gauche, these are just synonyms of them.

Function: string-concatenate-reverse string-list
Function: string-concatenate-reverse/shared string-list
[SRFI-13] Reverses string-list before concatenation. "Shared" version works the same in Gauche.



This document was generated by Ken Dickey on November, 28 2002 using texi2html