Changes

Jump to navigation Jump to search
1 byte removed ,  20:50, 9 August 2014
This returns some permutation of {{Code|(42, 'baz', 456)}}.
Like all other valuesBecause a map is a function item, functions that apply to functions also apply to maps are immutable. For exampleA map is an anonymous function, so {{Code|fn:function-name}} returns the <code>[[Map Module#map:removeempty sequence; {{Code|mapfn: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-arity}} always returns {{Code|1}}.
Like all other values, maps are immutable. For example, the <code>[[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. 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}}.
Maps may be compared using the {{Code|fn:deep-equal}} function. The [[Map Module]] describes the available set of map functions.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu