Page MenuHomePhabricator

[Request] pullBack
New, NormalPublic

Description

This is a feature request for an adverse command to pushBack

Potential use:

_arr = [1,2,3,4,5,1]
_arr pullBack 4; /*_arr = [1,2,3,5,1]*/
_arr pullBack 1; /*_arr = [2,3,4,5]*/

Potentially can add something akin to pullBackUnique to differentiate between "removing one matching element from the array" and "removing *all* matching elements from the array"

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

Gnashes created this task.Aug 2 2017, 6:35 AM
Gnashes updated the task description. (Show Details)
dedmen added a subscriber: dedmen.Sep 11 2017, 1:09 PM

deleteAt find arrayIntersect