Skip to content

Instantly share code, notes, and snippets.

@ltw
Created July 20, 2010 11:24
Show Gist options
  • Save ltw/482833 to your computer and use it in GitHub Desktop.
Save ltw/482833 to your computer and use it in GitHub Desktop.
test1 = [1,2,3]
test2 = [2,3,4,5,6,7,8]
unknown, known = *[test1 - test2, test1 & test2]
#=> [[1],[2,3]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment