Project

General

Profile

Actions

Feature #6727

closed

Add Array#rest (with implementation)

Added by duckinator (Marie Markwell) over 11 years ago. Updated over 4 years ago.

Status:
Feedback
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0