phpstreams\operations\SkipOperation::getIterator PHP Method

getIterator() public method

public getIterator ( )
    public function getIterator()
    {
        $toSkip = $this->toSkip;
        foreach ($this->source as $key => $value) {
            if ($toSkip > 0) {
                $toSkip--;
                continue;
            }
            (yield $key => $value);
        }
    }