Today I Learned: I can achieve the effect of map:put($m, $k, $v) with map:merge(($m, map{$k: $v})). The benefit of map:merge is that the sequence of maps may contain an empty sequence. If $m is the empty sequence, the map:merge still succeeds. #xquery #todayilearned