Changes

Jump to navigation Jump to search
399 bytes added ,  20:23, 13 December 2014
* <code>array:join(())</code> returns the array {{Code|[]}}.
* <code>array:join((1 to 3) ! array { . })</code> returns the array {{Code|[1, 2, 3]}}.
|}
 
==array:flatten==
 
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|array:flatten|$items as item()*|item()*}}
|-
| '''Summary'''
| Recursively flattens all arrays that occur in the supplied {{Code|$items}}.
|-
| '''Examples'''
|
* <code>array:flatten(["a","b"])</code> returns the sequence {{Code|"a", "b"}}.
* <code>array:flatten([1,[2,3],4]]) returns the sequence {{Code|1, 2, 3, 4}}.
|}
Bureaucrats, editor, reviewer, Administrators
12,024

edits

Navigation menu