From: "duckinator (Nick Markwell)" Date: 2012-07-13T14:33:21+09:00 Subject: [ruby-core:46381] [ruby-trunk - Feature #6727] Add Array#rest (with implementation) Issue #6727 has been updated by duckinator (Nick Markwell). And I just double-checked if those behave the same, and they do *not*: Incorrect: >> [].drop(1) => [] >> first, *rest = [] => [] >> first => nil >> rest => nil Correct: >> [][1..-1] => nil >> [].rest => nil So it would appear there are not other choices besides rest = arr[1..-1], at least not that fit on a single line. ---------------------------------------- Feature #6727: Add Array#rest (with implementation) https://bugs.ruby-lang.org/issues/6727#change-27997 Author: duckinator (Nick Markwell) Status: Rejected Priority: Normal Assignee: Category: Target version: =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/