Project

General

Profile

Actions

Feature #11315

open

[PATCH] Add Array#^ for parity with other set-like operations.

Added by 0x0dea (D.E. Akers) over 9 years ago. Updated over 9 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:69762]

Description

Proposal

It is proposed that Array be given an "XOR" method which returns the symmetric difference between itself and another array.

Rationale

#& and #| need a friend to complete the set of set-like operations on Array.


Files

array_xor.patch (2.69 KB) array_xor.patch 0x0dea (D.E. Akers), 06/28/2015 02:22 PM
array_xor_vodka.patch (2.97 KB) array_xor_vodka.patch 0x0dea (D.E. Akers), 06/28/2015 05:03 PM
array_xor_recycle_seen.patch (3 KB) array_xor_recycle_seen.patch 0x0dea (D.E. Akers), 06/28/2015 05:07 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0