Skip to content
Tcl Source Code Artifact [c85e4ef14d]
Login

Artifact [c85e4ef14d]

Artifact c85e4ef14df6ead4bd665f5aa872c7635657000a02daec8285da6654f2422240:



CommandName: list ManualSection: n Version: unknown TclPart: Tcl TclDescription: Tcl Built-In Commands Links:

Name

list - Create a list

Synopsis

::: {.synopsis} ::: [list]{.cmd} [arg arg]{.optdot} :::

Description

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.

Example

The command

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

will return

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

while fBconcatfR with the same arguments will return

a b c d e f {g h}