From: Yukihiro Matsumoto Date: 2011-11-03T19:33:11+09:00 Subject: [ruby-dev:44789] [ruby-trunk - Feature #5551][Rejected] Enumerable#rdrop Issue #5551 has been updated by Yukihiro Matsumoto. Status changed from Open to Rejected Arrayに追加するのであれ、Enumeratorで遅延評価するのであれ、この提案の根幹部分の変更になりますので、いったんrejectします。 また、思いついたrandom ideasをなんでもRubyに入れようとするのでなく、なぜそれを入れると良いのかという部分を説明していただけると採用しやすいと思います。現時点ではrdropの嬉しさがよくわからないので、Array#rdropとか採用しにくいです。 まず、ActiveSupportに入れたら、とか思っちゃいます。 ---------------------------------------- Feature #5551: Enumerable#rdrop http://redmine.ruby-lang.org/issues/5551 Author: Tsuyoshi Sawada Status: Rejected 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