Project

General

Profile

Feature #12247

accept multiple arguments at Array#delete

Added by usa (Usaku NAKAMURA) over 4 years ago. Updated over 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:74793]

Description

I found that it's very useful if Array#delete accepts multiple arguments.

ary = [1, 2, 3, 4, 5]
ary.delete(1, 3)       #=> [1, 3]
ary                    #=> [2, 4, 5]

Files

delete_multi.patch (4.6 KB) delete_multi.patch usa (Usaku NAKAMURA), 04/03/2016 09:45 AM

Related issues

Related to Ruby master - Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple argumentsClosedActions

Also available in: Atom PDF