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

コード例 #1
0
ファイル: Collection.php プロジェクト: Goldinteractive/Pinq
 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)));
     }
 }