Changes

Jump to navigation Jump to search
876 bytes added ,  19:12, 29 April 2012
</pre>
'''Result:''' <code>red green pink</code>
 
==Bang==
 
{{Mark|Introduced with Version 7.2.2:}}
 
The [http://www.w3.org/TR/xquery-30/#id-map-operator simple map operator] ({{Mono|!}}) – also called ''bang'' operator – is a compact notation to apply the results of a first to a second expression: the resulting items of the first expression are bound to the context item one by one, and the second expression is evaluated for each item. The map operator may be used as replacement for FLWOR expressions:
 
'''Example:'''
<pre class="brush:xquery">
(: Simple map notation :)
(1 to 10) ! element node { . },
(: FLWOR notation :)
for $i in 1 to 10
return element node { $i }
</pre>
 
A map operator is defined to be part of a path expression, which may now be mixed of path and map operators. In contrast to the map operator, the results of the map operator will not be made duplicate-free and returned in document order.
==Function Items==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu