Returns the value at the specified position in the supplied array (counting from 1).
array:get
( $array
as array(*)
,$position
as xs:integer
item()*
The result is the value of $array($position)
.
The expression ["a", "b", "c"] => array:get(2)
returns "b"
.
The expression ["a", ["b", "c"]] => array:get(2)
returns ["b", "c"]
.
A dynamic error occurs if $position
is not in the range 1 to
array:size($array)
inclusive.