From: "Hanmac (Hans Mackowiak)" Date: 2013-11-11T01:47:28+09:00 Subject: [ruby-core:58256] [ruby-trunk - Feature #6727] Add Array#rest (with implementation) Issue #6727 has been updated by Hanmac (Hans Mackowiak). i think in most cases we want something like ary[1..-1].each but wouldnt it be better if we have an each method like each_only(1..-1) {} that does that for us without making an new array? ---------------------------------------- Feature #6727: Add Array#rest (with implementation) https://bugs.ruby-lang.org/issues/6727#change-42847 Author: duckinator (Nick Markwell) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor =begin I run into many instances where I end up using (({arr[1..-1]})), so I decided to add (({arr.rest})) to make that a bit less hideous. Branch on github: (()) Patch: (()) Diff: (()) =end -- http://bugs.ruby-lang.org/