jdm:size($a), then $a($i) returns the value of the pair at position $i, i.e., jdm:value($a, $i).
$i is an invalid position), an empty sequence is returned.
let $wd := ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
return $wd(1)
Sunday
$f is bound to the following two dimensional array.
[
[ "mercury", "venus", "earth", "mars" ],
[ "monday", "tuesday", "wednesday", "thursday" ]
]
$f(1)
[ "mercury", "venus", "earth", "mars" ]
$f(2)(2)
tuesday