home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / list < prev    next >
Text File  |  1990-05-03  |  792b  |  24 lines

  1.  list arg1 arg2 ...
  2.       This command returns a list comprised of all the args.
  3.       Braces and backslashes get added as necessary, so that
  4.       the index command may be used on the result to re-
  5.       extract the original arguments, and also so that eval
  6.       may be used to execute the resulting list, with arg1
  7.       comprising the command's name and the other args
  8.       comprising its arguments.  List produces slightly
  9.       different results than concat:  concat removes one
  10.       level of grouping before forming the list, while list
  11.       works directly from the original arguments.  For
  12.       example, the command
  13.  
  14.       list a b {c d e} {f {g h}}
  15.  
  16.       will return
  17.  
  18.       a b {c d e} {f {g h}}
  19.  
  20.       while concat with the same arguments will return
  21.  
  22.       a b c d e f {g h}
  23.  
  24.