Pinq\Collection::removeRange PHP Méthode

removeRange() public méthode

public removeRange ( $values )
    public function removeRange($values)
    {
        if ($this->source !== null) {
            $this->source->removeRange($this->scheme->intersectionIterator($this->elements, $this->scheme->toIterator($values)));
        } else {
            $this->updateElements($this->scheme->exceptIterator($this->elements, $this->scheme->toIterator($values)));
        }
    }

Usage Example

Exemple #1
0
 public function removeRange($values)
 {
     if ($this->source !== null) {
         $this->source->removeRange($this->scheme->intersectionIterator($this->elements, $this->scheme->toIterator($values)));
     } else {
         $this->updateElements($this->scheme->exceptIterator($this->elements, $this->scheme->toIterator($values)));
     }
 }