Pinq\Collection::removeRange PHP Method

removeRange() public method

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

Ejemplo n.º 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)));
     }
 }