Artifact c85e4ef14df6ead4bd665f5aa872c7635657000a02daec8285da6654f2422240:
- File doc/markdown/list.md — part of check-in [bb08aafe0a] at 2025-07-15 19:41:45 on branch tip-700 — some non-change cosmetics to make the ctags implementation in Geany 2.1 partly happy again (user: Torsten, size: 1517) [annotate] [blame] [check-ins using]
CommandName: list ManualSection: n Version: unknown TclPart: Tcl TclDescription: Tcl Built-In Commands Links:
- lappend(n)
- lassign(n)
- ledit(n)
- lindex(n)
- linsert(n)
- llength(n)
- lmap(n)
- lpop(n)
- lrange(n)
- lremove(n)
- lrepeat(n)
- lreplace(n)
- lreverse(n)
- lsearch(n)
- lseq(n)
- lset(n)
- lsort(n) Keywords:
- element
- list
- quoting Copyright:
- Copyright (c) 1993 The Regents of the University of California.
- Copyright (c) 1994-1996 Sun Microsystems, Inc.
- Copyright (c) 2001 Kevin B. Kenny [email protected]. All rights reserved. ---
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}