Method: Array#^

Defined in:
lib/shenanigans/array/caret.rb

#^(other) ⇒ Object

Returns an array containing elements exclusive between two arrays.

[1, 2, 3] ^ [1, 2, 4]
#=> [3, 4]


5
6
7
# File 'lib/shenanigans/array/caret.rb', line 5

def ^(other)
  (self | other) - (self & other)
end