Iterate over the keys and values of the supplied iterator and
passes them (value, key) to the supplied function.
public walk ( Traversable $iterator, callable $function ) : void | ||
$iterator | Traversable | |
$function | callable | |
return | void |
public function iterate(callable $function) { $this->scheme->walk($this->getTrueIterator(), $function); }
public function iterate(callable $function) { $this->scheme->walk($this->elements, $function); }