public function getIterator() { $callback = $this->callback; foreach ($this->source as $key => $value) { (yield $key => $callback($value)); } }