1concat(n)                    Tcl Built-In Commands                   concat(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       concat - Join lists together
9

SYNOPSIS

11       concat ?arg arg ...?
12_________________________________________________________________
13
14

DESCRIPTION

16       This  command  joins  each  of its arguments together with spaces after
17       trimming leading and trailing white-space from each of  them.   If  all
18       the arguments are lists, this has the same effect as concatenating them
19       into a single list.  It permits any number of arguments; if no args are
20       supplied, the result is an empty string.
21

EXAMPLES

23       Although concat will concatenate lists (so the command:
24              concat a b {c d e} {f {g h}}
25       will  return  "a b c d e f {g h}" as its result), it will also concateā€
26       nate things that are not lists, and hence the command:
27              concat " a b {c   " d "  e} f"
28       will return "a b {c d e} f" as its result.
29
30       Note that the concatenation does not remove spaces from the  middle  of
31       its arguments, so the command:
32              concat "a   b   c" { d e f }
33       will  return  "a    b   c d e f" (i.e. with three spaces between the a,
34       the b and the c).
35
36

SEE ALSO

38       append(n), eval(n)
39
40

KEYWORDS

42       concatenate, join, lists
43
44
45
46Tcl                                   8.3                            concat(n)
Impressum