Project

General

Profile

Actions

Feature #12247

open

accept multiple arguments at Array#delete

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

Status:
Open
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0