Have you ever had an array that you only want to include unique elements? list_1 = ['apple', 'orange', 'grape'] list_2 = ['strawberry', 'apple'] combined_list = (list_1 + list_2).uniq combined_list #=> ["apple", "orange", "grape", "strawberry"] In t...
anthonygharvey.com2 min read
No responses yet.