Skip to content

concat ​

Concatenate arguments with spaces.

Syntax ​

tcl
concat ?arg ...?

Parameters ​

  • arg: One or more values to concatenate

Description ​

Joins all arguments together with spaces. Leading and trailing whitespace is trimmed from each argument before joining. This makes it useful for merging lists.

Examples ​

Basic concatenation ​

Output

Trimming whitespace ​

Output

Merging lists ​

Output

Empty arguments ​

Output

See Also ​

  • join - Join list with custom separator
  • string - String operations
  • list - Create a list
  • append - Append to a variable