Skip to content

Bars Specification 0.1.0 — Transform: join

Category: list · Since: 0.1.0

Joins list elements into a string.

Joins the input list's elements, each coerced to a string, with separator (a single space by default) between consecutive elements. A non-list input is a soft failure yielding null.

Input coercion: list

Arguments

Name Type Optional Default
separator string yes " "

Arity: 0–1

Worked examples

{{ xs | join }}

a b c
{{ xs | join: ", " }}

a, b, c

Full fixture: transforms/transform-join.json