Skip to content

Instantly share code, notes, and snippets.

@anthonygharvey
Created August 15, 2019 01:49
Show Gist options
  • Save anthonygharvey/7c5069890700ece7ce38ef4e8bcc8f74 to your computer and use it in GitHub Desktop.
Save anthonygharvey/7c5069890700ece7ce38ef4e8bcc8f74 to your computer and use it in GitHub Desktop.
list_1 = ['a', 'b', 'c']
list_2 = ['c', 'd', 'e']
list_1_difference = list_1 - list_2
list_1_difference #=> ["a", "b"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment