map:new Retains Keys with Empty Values
As of MarkLogic 9.0-4, the map:new
function retains any input key-value pair whose value is an empty sequence. Previous versions of MarkLogic 9 and versions of MarkLogic 8 prior to 8.0-7 discarded such key-value pairs.
For example:
map:keys(map:new(map:entry("noval",()))) (: Now returns "noval". Previously, returned an empty sequence. :)