Ruby: What is the easiest way to remove the first element from an array?

“pop”ing the first element of an Array is called “shift” (“unshift” being the operation of adding one element in front of the array).

Leave a Comment