Prefer drop
over slice
(or shift
) to retrieve all but the first array element
#794
Labels
drop
over slice
(or shift
) to retrieve all but the first array element
#794
A good argument here by @JoelQ:
https://github.com/thoughtbot/til/blob/master/ruby/all-but-the-first-element-from-array.md
https://ruby-doc.org/core-2.7.0/Array.html#method-i-drop
The text was updated successfully, but these errors were encountered: