[Bug 29353] New: Lossless map:merge


            Bug ID: 29353
           Summary: Lossless map:merge
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.2 Use Cases and Requirements
          Assignee: jonathan.robie@gmail.com
          Reporter: rxk2rxk@gmail.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---


I am using map:merge to construct a map from smaller maps and would like to
preserve values when the keys agree. For example, when calling

    map:merge((map:entry(0, "red"), (map:entry(1, "green"), map:entry(1,

I would like to get back something like

    map { 0: "red", 1: ("green", "blue") }

The W3C specification is to drop "green" in favor of "blue".

While the desired behavior can be accomplished using XQuery syntax, the
solution is not elegant and is relatively slow. Would it be possible to add an
option to map:merge that will exhibit lossless merging?


You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 30 December 2015 18:09:13 UTC