From: Tsuyoshi Sawada Date: 2011-11-03T17:39:40+09:00 Subject: [ruby-dev:44785] [ruby-trunk - Feature #5551] Enumerable#rdrop 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