Skip to main content
Version: v4.24

join

Joins a list of strings into a single string using a separator.

join(xs:list, [separator:string]) -> string

Description

The join function concatenates the elements of the input list xs into a single string, separated by the specified separator.

xs: list

A list of strings to join.

separator: string (optional)

The string used to separate elements in the result.

Defaults to "".

Examples

Join a list of strings with a comma

from {x: join(["a", "b", "c"], "-")}
{x: "a-b-c"}

See Also

split, split_regex