Changes

Jump to navigation Jump to search
602 bytes added ,  21:26, 9 August 2014
* <code>array:size([1 to 10])</code> returns {{Code|10}}.
* <code>array:size(array { 1 to 10 })</code> returns {{Code|10}}.
|}
 
==array:append==
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|array:append|$input 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"]}}.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu