Pinq\ICollection::removeWhere PHP 메소드

removeWhere() 공개 메소드

Removes all the values matched by the predicate.
public removeWhere ( callable $predicate ) : void
$predicate callable
리턴 void
    public function removeWhere(callable $predicate);

Usage Example

예제 #1
0
 /**
  * @dataProvider everything
  */
 public function testThatRemoveWhereFalseRemovesNoItems(\Pinq\ICollection $collection, array $data)
 {
     $collection->removeWhere(function () {
         return false;
     });
     $this->assertMatchesValues($collection, $data);
 }
All Usage Examples Of Pinq\ICollection::removeWhere