def root
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
412# the items gathered in the root frame
413def root(stack: List<&2, Frame>) -> Node:
414 match stack:
415 case Con{FRoot{body}, rest}:
416 reverse(body, NNil{})
417 case other:
418 NNil{}