ExCellerate.Functions.General.TextJoin (excellerate v0.4.0)

Copy Markdown View Source

Joins values into a single string using a delimiter.

The first argument is the delimiter; all remaining arguments are the values to join. Non-string values are converted to text automatically.

Examples

textjoin(', ', 'a', 'b', 'c')  'a, b, c'
textjoin('-', 1, 2, 3)         '1-2-3'
textjoin(' ', first, last)      'Jane Doe' (when first is 'Jane', last is 'Doe')