home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / lists / split < prev    next >
Encoding:
Text File  |  1992-12-17  |  994 b   |  21 lines

  1.           split string ?splitChars?
  2.                Returns a list created  by  splitting  string  at  each
  3.                character  that  is  in  the splitChars argument.  Each
  4.                element  of  the  result  list  will  consist  of   the
  5.                characters   from   string  between  instances  of  the
  6.                characters in splitChars.  Empty list elements will  be
  7.                generated  if  string  contains  adjacent characters in
  8.                splitChars, or if the first or last character of string
  9.                is  in  splitChars.   If  splitChars is an empty string
  10.                then  each  character  of  string  becomes  a  separate
  11.                element of the result list.  SplitChars defaults to the
  12.                standard white-space characters.  For example,
  13.  
  14.                     split "comp.unix.misc" .
  15.  
  16.                returns "comp unix misc" and
  17.  
  18.                     split "Hello world" {}
  19.  
  20.                returns "H e l l o { } w o r l d".
  21.