Changes

Jump to navigation Jump to search
147 bytes added ,  13:22, 2 August 2016
| '''Examples'''
|
<ul><li>Squaring Square all numbers from 1 to 10:
<pre class="brush:xquery">
fn:for-each(1 to 10, math:pow(?, 2))
''Result:'' <code>1 4 9 16 25 36 49 64 81 100</code>
</li>
<li>Applying Apply a list of functions to a string:
<pre class="brush:xquery">
let $fs := (
</pre>
''Result:'' <code>FOOBAR bar 6</code>
</li>
<li>Process each item of a sequence with the arrow operator:
<pre class="brush:xquery">
("one", "two", "three") => for-each(upper-case(?))
</pre>
</li></ul>
|-
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu