Changes

Jump to navigation Jump to search
254 bytes added ,  12:38, 23 April 2011
no edit summary
Maps may be compared using the <code>fn:deep-equal</code> function. The semantics for this function are extended so that when two items are compared, at any level of recursion, the items compare equal if they are both maps, if both use the same collation, if both contain the same set of keys (compared using the <code>eq</code> operator), without regard to ordering, and if for each key that is present in both maps, the associated values are deep-equal. When comparing maps, the maps' collation is used rather than the collation supplied as an argument to the <code>fn:deep-equal</code> function.
There is no operation to atomize a map or convert it to a string.Instead, the following example gives an example how the contents of a map can be serialized: <pre class="brush:xquery">let $map := map { 1:='a', 2:='b' }return string-join( for $m in map:keys($map) return concat($m, ':=', $map($m)), ', ')</pre>
==map:collation==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu