Skip to content

Instantly share code, notes, and snippets.

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