Changes

Jump to navigation Jump to search
653 bytes added ,  17:06, 7 August 2014
|-
| '''Examples'''
|* {{Code|map:entry("M", "Monday")}} creates <code>map { "M": "Monday" }</code>.|} ==map:for-each-entry=={| width='100%'| width='120' | '''Signatures'''|{{Func|map:for-each-entry|$input as map(*), $fun as function($key as xs:anyAtomicType, $value as item()*)|item()*}}|-| '''Summary'''|Applies a function to every entry of the map {{Code|$input}} and returns the results as a sequence. The function supplied as {{Code|$fun}} takes two arguments. It is called supplying the key of the map entry as the first argument, and the associated value as the second argument.|-| '''Examples'''|The following query returns {{Code|3}}:<pre class="brush:xquery">map:for-each-entry( map { 1: 2 }, function($a, $b) { $a + $b })</pre>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu