Skip to main content
Version: Next

length

Retrieves the length of a list.

length(xs:list) -> int

Description

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

Examples

Get the length of a list

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

See Also

length_bytes, length_chars