Changes

Jump to navigation Jump to search
680 bytes added ,  21:30, 9 August 2014
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|array:append|$input array as array(*), $insert as item()*|array(*)}}
|-
| '''Summary'''
| Adds one member at the end of the array. The result is an array whose size is {{Code|array:size($array) + 1}}, in which all members in positions {{Code|1}} to {{Code|array:size($array)}} are the same as the members in the corresponding position of $array, and the member in position {{Code|array:size($array) + 1}} is {{Code|$insert}}.
|-
| '''Examples'''
|
* <code>array:append([], 'member1')</code> returns the array {{Code|["member1"]}}.
|}
 
==array:subarray==
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|array:subarray|$array as array(*), $start as xs:integer|array(*)}}<br/>{{Func|array:subarray|$array as array(*), $start as xs:integer, $length as xs:integer|array(*)}}
|-
| '''Summary'''
| Gets an array containing all members from a supplied array starting at a supplied position, up to a specified length.<br/>The two-argument version of the function returns the same result as the three-argument version when called with $length equal to the value of {{Code|array:size($array) - $start + 1}}.
|-
| '''Examples'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu