def tree.walk
import emerging-eztoml@0.9.0.0/main.bend as EmergingEztomlimport Base
2431# follow a key path and apply the job at its end. skip is the current table
2432def tree.walk(path: List<&2, String>, tw: Tw, +skip: U32) -> End:
2433 match path:
2434 case []:
2435 tree.walk.none(tw)
2436 case name <> rest:
2437 match rest:
2438 case []:
2439 tree.leaf(name, tw)
2440 case _ <> _:
2441 tree.walk(rest, tree.sub(name, tw, U32.is_zero(skip)), path.dec(skip))