def tree.rebuild

emerging-eztoml@0.9.0.0 · main.bend:2104

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

2104# walk the frames back to the root
2105def tree.rebuild(stack: List<&2, Fr>, vs: List<&2, Val>, bad: String, heads: List<&2, String>) -> End:
2106  match stack:
2107    case []:
2108      End{vs, bad, heads}
2109    case fr <> t:
2110      tree.rebuild(t, tree.wrap(fr, vs), bad, heads)

Uses (6)

Used by (6)