Issue #5551 has been updated by Tsuyoshi Sawada.


中??????????????????????????????????(?????????)??????????????????????????????
----------------------------------------
Feature #5551: Enumerable#rdrop
http://redmine.ruby-lang.org/issues/5551

Author: Tsuyoshi Sawada
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


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]

    


-- 
http://redmine.ruby-lang.org