def close
import bend-toon-codec@0.1.0.0/src/frame.bend as Frameimport Base
163# Close the top frame into the one beneath it.
164def close(+st: St, +strict: Bool) -> Result<&2, &2, String, St>:
165 match st:
166 case St{Con{top, rest}, root, bmin}:
167 close.go(finish(top, strict), fr.att(top), rest, root, strict, bmin)
168 case _:
169 Done{st}