Changes

Jump to navigation Jump to search
60 bytes removed ,  18:35, 1 December 2023
m
Text replacement - "<syntaxhighlight lang="xquery">" to "<pre lang='xquery'>"
| '''Examples'''
|The following query returns the array {{Code|[0, 1, 3]}}:
<syntaxhighlight pre lang="'xquery"'>
array:filter(
array { 0, 1, -2, 3, -4 },
| '''Examples'''
|The following query returns {{Code|55}} (the sum of the integers 1 to 10):
<syntaxhighlight pre lang="'xquery"'>
array:fold-left(
array { 1 to 10 },
| '''Examples'''
|The following query is equivalent to the expression <code>array:reverse(array { 1 to 5 })</code>:
<syntaxhighlight pre lang="'xquery"'>
array {
array:fold-right(
|The following query returns the array {{Code|[2, 3, 4, 5, 6]}}:
<syntaxhighlight pre lang="'xquery"'>
array:for-each(
array { 1 to 5 },
| '''Examples'''
|The following query returns the array {{Code|[5, 7, 9]}}:
<syntaxhighlight pre lang="'xquery"'>
array:for-each-pair(
array { 1 to 3 },
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu