Skip to content

join

Join list elements into a string.

Syntax

tcl
join list ?joinString?

Parameters

  • list: A list of elements to join
  • joinString: The separator to place between elements (default: space)

Description

Concatenates the elements of a list into a single string, placing the join string between each element. If no join string is specified, a single space is used.

Examples

Default separator (space)

Output

Custom separator

Output

No separator

Output

Newline separator

Output

Building paths

Output

See Also

  • split - Split string into list
  • concat - Concatenate with spaces
  • list - Create a list