Skip to content

Instantly share code, notes, and snippets.

@Sailias

Sailias/array.rb Secret

Created August 28, 2012 20:27
Show Gist options
  • Save Sailias/3c9b2d1169b844c570f3 to your computer and use it in GitHub Desktop.
Save Sailias/3c9b2d1169b844c570f3 to your computer and use it in GitHub Desktop.
> a1 = [1,2,3]
> a2 = [3,4,5,6]
> (a1 - a2) + (a2 - a1)
=> [1, 2, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment