array:for-each-pair

Returns an array obtained by evaluating the supplied function once for each pair of members at the same position in the two supplied arrays.

for-each-pair($array1 as array(*), $array2 as array(*), $function as function(item()*, item()*) as item()*) ➔ array(*)

Arguments

 

$array1

array(*)

The input array

 

$array2

array(*)

The input array

 

$function

function(item()*, item()*) as item()*

The function to be applied to each member of the input array

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.