Skip to content

Instantly share code, notes, and snippets.

@anthonygharvey
Created August 15, 2019 01:48
Show Gist options
  • Save anthonygharvey/e88e8f8801dfaad364a2ae0d697f9b10 to your computer and use it in GitHub Desktop.
Save anthonygharvey/e88e8f8801dfaad364a2ae0d697f9b10 to your computer and use it in GitHub Desktop.
list_1 = ['apple', 'orange', 'grape']
list_2 = ['strawberry', 'apple']
combined_list = list_1 | list_2
combined_list #=> ["apple", "orange", "grape", "strawberry"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment