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.

Retrieves the length of a list.

length(xs:list) -> int

The length function returns the number of elements in the list xs.

from {n: [1, 2, 3].length()}
{n: 3}

Last updated: