Changes

Jump to navigation Jump to search
68 bytes removed ,  20:41, 18 July 2022
no edit summary
Because a map is a function item, functions that apply to functions also apply to maps. A map is an anonymous function, so {{Code|fn:function-name}} returns the empty sequence; {{Code|fn:function-arity}} always returns {{Code|1}}.
Like all other values, maps are immutable. For example, the <code>[[{{Function|Map Module#map:remove|map:remove]]</code> }} function creates a new map by removing an entry from an existing map, but the existing map is not changed by the operation. Like sequences, maps have no identity. It is meaningful to compare the contents of two maps, but there is no way of asking whether they are "the same map": two maps with the same content are indistinguishable.
Maps may be compared using the {{Code|fn:deep-equal}} function. The [[Map Module]] describes the available set of map functions.
</syntaxhighlight>
Like all other values, arrays are immutable. For example, the <code>[[{{Function|Array Module#array:reverse|array:reverse]]</code> }} function creates a new array containing a re-ordering of the members of an existing array, but the existing array is not changed by the operation. Like sequences, arrays have no identity. It is meaningful to compare the contents of two arrays, but there is no way of asking whether they are "the same array": two arrays with the same content are indistinguishable.
==Atomization==
==Adaptive Serialization==
The {{Code|adaptive}} serialization provides an intuitive textual representation for all XDM types, including maps and arrays, functions, attributes, and namespaces. All items will be separated by the value of the {{Code|item-separator}} parameter, which by default is a newline character. It is utilized by the functions <code>[[{{Function|Profiling Module#prof:dump|prof:dump]]</code> }} and <code>[https://www.w3.org/TR/xpath-functions-31/#func-trace fn:trace]</code>.
Example:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu