[Bug 25502] New: Binary Operators on maps


            Bug ID: 25502
           Summary: Binary Operators on maps
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Requirements for Future Versions
          Assignee: jim.melton@acm.org
          Reporter: liam@w3.org
        QA Contact: public-qt-comments@w3.org

Copied from mailing list by Liam -

This is an attempt to flesh out an idea from Mohamed (see

1. map1  + map2 

If a and b are both maps, then a  + b is defined as map:new( a, b).  The
following expressions are equivalent:

$m2 := map:new( $m1, { "foo" : "bar" }) 
$m2 := $m1 + { "foo" : "bar" }

2. map - atomic

If a is a map and b is an atomic value, then a - b is defined as map:remove(a,
b). The following expressions are equivalent:

$m2 := map:remove( $m1, "foo") 
$m2 := $m1 - "foo"


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

Received on Tuesday, 29 April 2014 15:41:50 UTC