return $map[?name = 'Hildur'] ?city
</pre>
==Arrow Operator==
The arrow operator applies a function to an item. The item is used as the first argument to the function. It is introduced with the characters {{Code|=>}}, and it is followed by the function to be called. If {{Code|$i}} is an item and {{Code|f()}} is a function, then {{Code|$i=>f()}} is equivalent to {{Code|f($i)}}, and {{Code|$i=>f($j)}} is equivalent to {{Code|f($i, $j)}}. This is further illustrated by an example:
<pre class="brush:xquery">
(: Returns 3 :)
count(('A', 'B', 'C')),
('A', 'B', 'C') => count(),
(: Returns W-E-L-C-O-M-E :)
string-join(tokenize(upper-case('w e l c o m e')), '-'),
'w e l c o m e' => upper-case() => tokenize() => string-join('-'),
(: Returns xfmdpnf :)
codepoints-to-string(
for $i in string-to-codepoints('welcome')
return $i + 1
),
(for $i in 'welcome' => string-to-codepoints()
return $i + 1) => codepoints-to-string()
</pre>
The syntax makes nested function calls more readable, as it is easy to see if parentheses are balanced.
===Atomization===