Skip to content

@str.join

Join array elements into a string with a delimiter.

Returns: string

@str.join(arr delim)
Name Type Description
arr array Source array
delim string Delimiter string
# Join array with comma
set $parts ["a" "b" "c"]
set $csv @str.join($parts ",")
# Join with space
set $parts ["a" "b" "c"]
set $spaced @str.join($parts " ")