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

10.7.10 String mapping

Function: string-map proc s &optional start end
Function: string-map! proc s &optional start end
[SRFI-13] string-map applies proc on every character of s, and collects the results into a string and returns it. On the other hand, string-map! modifies s.
 
(string-map char-upcase "wikiwiki") => "WIKIWIKI"
(string-map char-upcase "wikiwiki" 4) => "WIKI"

(let ((s (string-copy "wikiwiki")))
  (string-map! char-upcase s 4)
  s)
  => "wikiWIKI"

Function: string-fold kons knil s &optional start end
Function: string-fold-right kons knil s &optional start end
[SRFI-13]

Function: string-unfold p f g seed &optional base make-final
[SRFI-13]

Function: string-unfold-right p f g seed &optional base make-final
[SRFI-13]

Function: string-for-each proc s &optional start end
[SRFI-13]

Function: string-for-each-index proc s &optional start end
[SRFI-13]



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