public function valid() { if (!$this->skipped) { for ($i = 0; $i < $this->skipCount; ++$i) { $this->iterator->next(); } $this->skipped = true; } return parent::valid(); }
public function __construct(Iterator $iterator, $function) { parent::__construct($iterator); $this->function = $function; }