Skip to content

Instantly share code, notes, and snippets.

@glucero
Created March 4, 2015 13:53
Show Gist options
  • Save glucero/419c5a52138f1c728270 to your computer and use it in GitHub Desktop.
Save glucero/419c5a52138f1c728270 to your computer and use it in GitHub Desktop.
Array#^
class Array
def ^(operand)
(self | operand) - (self & operand)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment