Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

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

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

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

A list of strings to join.

The string used to separate elements in the result.

Defaults to "".

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

Last updated: