This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Could the second argument $index be renamed to $position, array:get($array as array(*), $index as xs:integer) as item()* to match other function signatures array:remove($array as array(*), $position as xs:integer) as array(*) amd array:insert-before($array as array(*), $position as xs:integer, $member as item()*) as array(*) Similarly, the first argument of array:sort($input as array(*)) as array(*) array:sort($input as array(*), $key as function(item()*) as xs:anyAtomicType*) as array(*) array:flatten($input as item()*) as item()* be renamed to $array, matching the rest of the "array" functions. While these are trivial changes, it might be beneficial for IDE users.
I have made these editorial changes. It never occurred to me that the choice of argument names might affect anything outside the specification itself (I probably wouldn't have used "appendage" otherwise!), but I guess you are right.