Learn Ruby
Array
14.12
Lesson

Removing elements from array using minus sign

Ruby allows - sign to subtract or remove items from an array.

- operator does not change the original array. A new array is created after removing the elements from the array.