def ttf.assemble.pop
import gralha-truetype@0.1.0.1/font.bend as Fontimport Base
345# Pop a finished frame into its parent frame.
346def ttf.assemble.pop(frame: TTFrame, parents: List<&2, TTFrame>) -> List<&2, TTFrame>:
347 TTFrame{at, acc, place} = frame
348 match parents:
349 case Nil{}: Con{TTFrame{0, acc, place}, Nil{}}
350 case Con{TTFrame{pat, pacc, pplace}, rest}: Con{TTFrame{pat, ttf.place(pacc, acc, place), pplace}, rest}