list.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" Copyright (c) 1993 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '" Copyright (c) 2001 Kevin B. Kenny. All rights reserved.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: list.n,v 1.7.4.1 2004/10/27 12:52:40 dkf Exp $
- '"
- .so man.macros
- .TH list n "" Tcl "Tcl Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- list - Create a list
- .SH SYNOPSIS
- fBlist fR?fIarg arg ...fR?
- .BE
- .SH DESCRIPTION
- .PP
- This command returns a list comprised of all the fIargfRs,
- or an empty string if no fIargfRs are specified.
- Braces and backslashes get added as necessary, so that the fBlindexfR command
- may be used on the result to re-extract the original arguments, and also
- so that fBevalfR may be used to execute the resulting list, with
- fIarg1fR comprising the command's name and the other fIargfRs comprising
- its arguments. fBListfR produces slightly different results than
- fBconcatfR: fBconcatfR removes one level of grouping before forming
- the list, while fBlistfR works directly from the original arguments.
- .SH EXAMPLE
- The command
- .CS
- fBlistfR a b "c d e " " f {g h}"
- .CE
- will return
- .CS
- fBa b {c d e } { f {g h}}fR
- .CE
- while fBconcatfR with the same arguments will return
- .CS
- fBa b c d e f {g h}fR
- .CE
- .SH "SEE ALSO"
- lappend(n), lindex(n), linsert(n), llength(n), lrange(n),
- lreplace(n), lsearch(n),
- .VS 8.4
- lset(n),
- .VE 8.4
- lsort(n)
- .SH KEYWORDS
- element, list