len(x)

signature
len(x: array | string) -> int

Get the length of an array or string. If the argument is an array, the length is the number of elements in the array. If the argument is a string, the length is the number of characters in the string.

Examples

goose
const a = [1, 2, 3]
println(len(a)) // 3
println(len("hello")) // 5