index Function
index
finds the element at the index when handling lists, or the element at
the key when handling maps.
Examples
Related Functions
element
retrieves a particular element from a list given its index.
You are viewing documentation for version v1.6.x. View latest version.
index
finds the element at the index when handling lists, or the element at
the key when handling maps.
index(list, value)
> index(["a", "b", "c"], 1)
"b"
> index({"a"=1, "c"=2, "d"=3}, "c")
2
element
retrieves a particular element from a list given
its index.