Closed
Bug 847355
Opened 12 years ago
Closed 2 years ago
Add intersections and unions to Set (and Map)
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1805038
People
(Reporter: aleth, Unassigned)
Details
It would be useful to be able to form the intersection and the union of two Sets.
The union would be similar to Array.concat, while an intersection is similar to a particular Array.filter (so it may also make sense to have filter for Sets instead).
I don't know if this has been proposed already, but it is not part of the Harmony specs (http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets).
Comment 1•12 years ago
|
||
As these methods don't seem to be part of any proposal yet, you should propose them on the es-discuss mailing list.
Why only intersections and unions? How about complements and other set operations?
Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Till Schneidereit [:till] from comment #1)
> As these methods don't seem to be part of any proposal yet, you should
> propose them on the es-discuss mailing list.
For future reference, I proposed this on es-discuss in this thread https://mail.mozilla.org/pipermail/es-discuss/2013-March/028963.html. Some favourable discussion followed, which as far as I know didn't get taken up in a proposal however.
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•