Name

join — Join elements of a list to create a string.

Synopsis

join list [string]

Description

The join command takes a list argument, and optionally, a string argument. It joins all elements of the list together with the string, or, if a string is not provided, with a space.

Example

puts [join {a b c} "|"]
	  

Produces:

a|b|c