array:put

Returns an array containing all the members of a supplied array, except for one member which is replaced with a new value.

put($array as array(*), $position as xs:integer, $member as item()*) ➔ array(*)

Arguments

 

$array

array(*)

The input array

 

$position

xs:integer

The position of the member to be replaced

 

$member

item()*

The new member

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.0.6.