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(*)
The input array
The position of the member to be replaced
The new member
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 126.96.36.199.