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.

Inserts an element at the back of a list.

append(xs:list, x:any) -> list

The append function returns the list xs with x inserted at the end. The expression xs.append(x) is equivalent to [...xs, x].

from {xs: [1, 2]}
xs = xs.append(3)
{xs: [1, 2, 3]}

Last updated: