public function each(callable $fn) { foreach ($this->nodes as $i => $n) { $cx = $this->newContext($n); $this->callfn($fn, [$cx, $i, $n]); } return $this; }