Join

Syntax

	$list.join(separator: ", ", prefix: "(", suffix: ")")

Description

Joins a character string from the given list entries. A separator is inserted between each entry. Optionally, a prefix or suffix can be added at the beginning and end.

Parameters

name Type Type Description Mandatory Default
input List of values The values to be converted into a character string Yes
separator Character string The separator to be inserted between the individual values. no ", "
prefix Character string The optional prefix to be added at the beginning of the result. no empty
suffix Character string The optional suffix to be added at the end of the result. no empty

Return value

Type: String

All given values are concatenated and separated with a separator.

Examples

Example 1: Output

	[1, 2, 3].join()

Output: "1, 2, 3"

Example 2

	[1, 2, 3].join(separator: "; ", prefix: "{", suffix: "}");

Output: "{1; 2; 3}"