walk() public method

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
Example #1
0
 public function iterate(callable $function)
 {
     $this->scheme->walk($this->getTrueIterator(), $function);
 }
Example #2
0
 public function iterate(callable $function)
 {
     $this->scheme->walk($this->elements, $function);
 }