Changes

Jump to navigation Jump to search
940 bytes added ,  11:08, 21 November 2023
no edit summary
|- valign="top"
| '''Summary'''
| Delivers the contents of an {{Code|$array}} as a sequence of value records.|- valign="top"| '''Note'''| This function is the inverse of [[#array:of-members|array:of-members]].
|- valign="top"
| '''Examples'''
array:of-members(array:members($array))
)</pre> returns {{Code|true()}}</li>
</ul>
|}
 
==array:of-members==
 
{| width='100%'
| width='120' | '''Signature'''
|<pre>array:of-members(
$input as record(value as item()*)*
) as array(*)
</pre>
|- valign="top"
| '''Summary'''
| Constructs an array from the contents of an {{Code|$input}} sequence of value records.
|- valign="top"
| '''Note'''
| This function is the inverse of [[#array:members|array:members]].
|- valign="top"
| '''Examples'''
|
<ul>
<li><code>array:of-members(())</code> returns {{Code|[]}}.</li>
<li><code>array:of-members(map { 'value': (1 to 5) })</code> returns {{Code|[(1, 2, 3, 4, 5)]}}.</li>
<li><code>array:of-members((1 to 5) ! map { 'value': . })</code> returns {{Code|[1, 2, 3, 4, 5]}}.</li>
<li><code>array:of-members((1 to 5) ! map { 'value': (., .*.) })</code> returns {{Code|[(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)]}}.</li>
</ul>
|}
administrator, Bureaucrats, editor, reviewer, Administrators
57

edits

Navigation menu