Actions
Feature #5551
closedEnumerable#rdrop
Feature #5551:
Enumerable#rdrop
Status:
Rejected
Assignee:
-
Target version:
-
Description
There is Enumerable#drop(n), which drops elements on the left side, but there is no counterpart for dropping the right side. It will be convenient if there is Enumerable#rdrop(n) that drops the elements on the right side.
[1, 2, 3, 4, 5].rdrop(2) # => [1, 2, 3]
Actions