## Tcl9.0.3/Tk9.0.3 Documentation > Tcl Commands > list

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

list — リストを生成する Create a list

### 構文 SYNOPSIS

list ?arg arg ...?

### 説明 DESCRIPTION

この命令は全ての引数 arg から構成されるリストを返すが､arg が全く指定されない場合は空文字列を返す｡波括弧と逆斜線は必要に応じて付加され､そこで､その結果に対して､元の引数を再-抽出する為に lindex 命令が使用でき､又､ eval についても､ arg1 が命令の名前を構成し､他の arg がその引数を構成して､結果のリストを実行に使うことができる｡list は concat とは幾分違う結果を生産する: concat はリストを形成する前に群の水準を一つ取り除き､一方 list は元の引数から直接に動作する｡ This command returns a list comprised of all the args, or an empty string if no args are specified. Braces and backslashes get added as necessary, so that the lindex command may be used on the result to re-extract the original arguments, and also so that eval may be used to execute the resulting list, with arg1 comprising the command's name and the other args comprising its arguments. List produces slightly different results than concat: concat removes one level of grouping before forming the list, while list works directly from the original arguments.

### 用例 EXAMPLE

この命令は The command

    list a b "c d e  " "  f {g h}"

は之を返す will return

    a b {c d e  } {  f {g h}}

一方 concat が同じ引数に対して返すのは　　　　　　 while concat with the same arguments will return

    a b c d e f {g h}

### SEE ALSO

lappend, lassign, ledit, lindex, linsert, llength, lmap, lpop, lrange, lremove, lrepeat, lreplace, lreverse, lsearch, lseq, lset, lsort

### KEYWORDS

element, list, quoting
Copyright © 1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 2001 Kevin B. Kenny <kennykb(at)acm.org>. All rights reserved.