array:remove

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(*)

Arguments

 

$array

array(*)

The input array

 

$positions

xs:integer*

The positions of the members to be removed

Result

array(*)

Namespace

http://www.w3.org/2005/xpath-functions/array

Links to W3C specifications

XPath 3.1 Functions and Operators

Notes on the Saxon implementation

Available since Saxon 9.7.

Since 9.7.0.6, the behaviour changed (following a W3C Specification change) to allow multiple items to be removed in a single call.