def close

bend-toon-codec@0.1.0.0 · src/frame.bend:163

import bend-toon-codec@0.1.0.0/src/frame.bend as Frame
import 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}

Uses (8)

Used by (1)