Project

General

Profile

Feature #6727

Add Array#rest (with implementation)

Added by duckinator (Marie Markwell) over 8 years ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Target version:
-
[ruby-core:46377]

Description

=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: ((URL:https://github.com/duckinator/ruby/compare/feature/array_rest))

Patch: ((URL:https://github.com/duckinator/ruby/compare/feature/array_rest.patch))

Diff: ((URL:https://github.com/duckinator/ruby/compare/feature/array_rest.diff))
=end

Also available in: Atom PDF