==map:for-each-entry==
{{Mark|Introduced with Version 8.0}}:
{| width='100%'
| width='120' | '''Signatures'''
|-
| '''Examples'''
|The following query adds the keys and values of all map entries and returns {{Code|310}}:
<pre class="brush:xquery">
map:for-each-entry(
map { 1: 2 , 3: 4 }, function($a, $b) { $a + $b })
</pre>
|}