DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(guile.info.gz) SRFI-13 List/String Conversion

Info Catalog (guile.info.gz) SRFI-13 Constructors (guile.info.gz) SRFI-13 (guile.info.gz) SRFI-13 Selection
 
 39.11.4 List/String Conversion
 ------------------------------
 
 The procedure `string->list' is extended by SRFI-13, that is why it is
 included in `(srfi srfi-13)'.  The other procedures are new.  The Guile
 core already contains the procedure `list->string' for converting a
 list of characters into a string ( List/String Conversion).
 
  -- Scheme Procedure: string->list str [start end]
      Convert the string STR into a list of characters.
 
  -- Scheme Procedure: reverse-list->string chrs
      An efficient implementation of `(compose string->list reverse)':
 
           (reverse-list->string '(#\a #\B #\c)) => "cBa"
 
  -- Scheme Procedure: string-join ls [delimiter grammar]
      Append the string in the string list LS, using the string DELIM as
      a delimiter between the elements of LS.  GRAMMAR is a symbol which
      specifies how the delimiter is placed between the strings, and
      defaults to the symbol `infix'.
 
     `infix'
           Insert the separator between list elements.  An empty string
           will produce an empty list.
 
     `string-infix'
           Like `infix', but will raise an error if given the empty list.
 
     `suffix'
           Insert the separator after every list element.
 
     `prefix'
           Insert the separator before each list element.
 
Info Catalog (guile.info.gz) SRFI-13 Constructors (guile.info.gz) SRFI-13 (guile.info.gz) SRFI-13 Selection
automatically generated byinfo2html