Returns an array containing all the members of the supplied array, except for the members at the specified positions.
remove($array as array(*), $positions as xs:integer*) ➔ array(*)
The input array
The positions of the members to be removed
Links to W3C specifications
XPath 3.1 Functions and Operators
Available in XPath 3.1, XSLT 3.0, and XQuery 3.1. Available in all Saxon editions. Implemented since Saxon 9.7.
Notes on the Saxon implementation
Available since Saxon 9.7.
Since 18.104.22.168, the behaviour changed (following a W3C Specification change) to allow multiple items to be removed in a single call.