concat(n) Tcl Built-In Commands concat(n)
NAME
concat - Join lists together
SYNOPSIS
ccoonnccaatt ?arg arg ...?
DESCRIPTION
This command joins each of its arguments together with spaces after
trimming leading and trailing spaces from each of them. If all the
arguments are lists, this has the same effect as concatenating them
into a single list. It permits any number of arguments. For example,
the command
ccoonnccaatt aa bb {{cc dd ee}} {{ff {{gg hh}}}}
will return
aa bb cc dd ee ff {{gg hh}}
as its result, and
ccoonnccaatt "" aa bb {{cc "" dd "" ee}} ff""
will return
aa bb {{cc dd ee}} ff
as its result.
If no args are supplied, the result is an empty string.
SEE ALSO
append(n), eval(n)
KKEEYYWWOORRDDSS
concatenate, join, lists
Tcl 8.3 concat(n)