list.n

来自「tcl是工具命令语言」· N 代码 · 共 55 行

N
55
字号
'\"'\" 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 2001/12/05 22:26:43 dgp Exp $'\" .so man.macros.TH list n "" Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMElist \- Create a list.SH SYNOPSIS\fBlist \fR?\fIarg arg ...\fR?.BE.SH DESCRIPTION.PPThis command returns a list comprised of all the \fIarg\fRs,or an empty string if no \fIarg\fRs are specified.Braces and backslashes get added as necessary, so that the \fBlindex\fR commandmay be used on the result to re-extract the original arguments, and alsoso that \fBeval\fR may be used to execute the resulting list, with\fIarg1\fR comprising the command's name and the other \fIarg\fRs comprisingits arguments.  \fBList\fR produces slightly different results than\fBconcat\fR:  \fBconcat\fR removes one level of grouping before formingthe list, while \fBlist\fR works directly from the original arguments.For example, the command.CS\fBlist a b {c d e} {f {g h}}\fR.CEwill return.CS\fBa b {c d e} {f {g h}}\fR.CEwhile \fBconcat\fR 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), lsearch(n), .VS 8.4lset(n),.VElsort(n),lrange(n), lreplace(n).SH KEYWORDSelement, list

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?