Skip to content

Instantly share code, notes, and snippets.

@Pavling
Created March 2, 2010 11:57
Show Gist options
  • Save Pavling/319461 to your computer and use it in GitHub Desktop.
Save Pavling/319461 to your computer and use it in GitHub Desktop.
>> a1 = [3, 1, 2]
=> [3, 1, 2]
>> a2 = [2, 3, 4]
=> [2, 3, 4]
>> (a1 - a2) + (a2 - a1)
=> [1, 4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment