Changes

Jump to navigation Jump to search
m
|-
| '''Summary'''
|Returns its first argument unchanged and irgores ignores the second. This function isn't useful on its own, but can be used as argument to other higher-order functions, e.g. when a function combining two values is expected and one only wants to retain the left one.
|-
| '''Examples'''
)
</pre>
* Another use-case: When inserting a key into a map, {{Code|$f}} descides decides how to combine the new value with a possibly existing old one. {{Code|hof:const}} here means ignoring the old value, so that's normal insertion.
<pre class="brush:xquery">
let $insert-with := function($f, $map, $k, $v) {
10

edits

Navigation menu