Changes

Jump to navigation Jump to search
11 bytes removed ,  19:48, 18 July 2022
m
Text replacement - "\[\[#(map:[^|]+)\|(map:[^|]+)\]\]" to "{{Function||$1}}"
| '''Summary'''
| Creates a new ''map'' containing a single entry. The key of the entry in the new map is {{Code|$key}}, and its associated value is {{Code|$value}}.
The function {{Code|map:entry}} is intended primarily for use in conjunction with the function <code>[[#map:merge{{Function||map:merge]]}}</code>. For example, a map containing seven entries may be constructed like this:
<syntaxhighlight lang="xquery">
;Version 8.6
* Added: [[#map:find{{Function||map:find]]}}* Updated: [[#map:merge{{Function||map:merge]]}}: Signature extended with options argument. By default, value of first key is now adopted (instead of last, as in previous versions).
;Version 8.4
;Version 8.0
* Added: [[#map:for-each{{Function||map:for-each]]}}, [[#map:merge{{Function||map:merge]]}}, [[#map:put{{Function||map:put]]}}
* Removed: support for collations (in accordance with the XQuery 3.1 spec).
* Removed: {{Code|map:new}} (replaced with {{Code|map:merge}})
;Version 7.8
* Updated: map syntax <code>map { 'key': 'value' }</code>
* Added: [[#map:serialize{{Function||map:serialize]]}}
;Version 7.7.1
* Updated: alternative map syntax without {{Code|map}} keyword and {{Code|:}} as key/value delimiter (e.g.: <code>{ 'key': 'value' })</code>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu