HomeManualTopicsTypesSymbols

std::join

concatenates the list items using the specified separator

Parameters

items
separator (default: " ")

Results

None

Description

Returns a string which is the concatenation of all the list items separated by the specified separator.

If the list is empty then the empty string is returned.

Example

$items list("a" "b" "c") $str join(items ";") println! str

Output

a;b;c

Topic

Strings

See also

std_types::string/std::split