Changes

Jump to navigation Jump to search
33 bytes added ,  14:14, 11 October 2016
* {{Code|map:merge(())}} creates an empty map.
* {{Code|map:merge((map:entry(0, "no"), map:entry(1, "yes")))}} creates <code>map { 0: "no", 1: "yes" }</code>.
* The following function adds a seventh entry to an existing map:<codepre class="brush:xquery">map:merge(($week, map { 7: "Unbekannt" }))</codepre> creates * In the following example, the values of all maps are combined, resulting in <code>map { 0: "Sonntagkey", : (1: "Montag", 2: "Dienstag", 3: "Mittwoch", 4: "Donnerstag", 5: "Freitag", 6: "Samstag", 7: "Unbekannt" ) }</code>.:* <codepre class="brush:xquery">map:merge( for $i in 1 to 3 return map { 'key': $i }, map { 'duplicates': 'combine' })</code> creates <code>map { "key": (1, 2, 3) }</codepre>.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu