table of contents
other languages
- English tcl8.5-doc
- English tcl8.4-doc
- 中文 (zh-CN)
- 繁體中文 (zh-TW)
other sections
list(3tcl) | Tcl Built-In Commands | list(3tcl) |
NAME¶
list - 建立一個列表總覽 SYNOPSIS¶
list ?arg arg ...?描述 DESCRIPTION¶
這個命令返回由所有 arg 組成的一個列表,如果未指定 arg 則返回一個空串。可按需要增加花括號和反斜線,這樣就可以在結果上使用 index 命令來提取原始的參數,還可以用 eval 執行這個結果列表,(執行時)加上由這個命令的名字組成的 arg1 和又它的參數組成的其他 args 。List 與 concat 生成的結果有細微的區別: concat 在形成列表之前去除一層組合,而 list 直接用原始參數來工作。例如,命令list a b {c d e} {f {g h}}
a b {c d e} {f {g h}}
a b c d e f {g h}
參見 SEE ALSO¶
lappend(n), lindex(n), linsert(n), llength(n), lsearch(n), lsort(n), lrange(n), lreplace(n)關鍵字 KEYWORDS¶
element, list[中文版維護人]¶
寒蟬退士[中文版最新更新]¶
2001/09/06《中國 Linux 論壇 man 手冊頁翻譯計劃》:¶
http://cmpp.linuxforum.netTcl |