def sp.start
import cswap-bend-cli@0.1.0.0/fmt/yamlr.bend as Yamlrimport Base
130def sp.start(+sp: Sp, +l: Ln, hold: Bool) -> Sp:
131 match sp:
132 case Sp{done, cur, h}:
133 Sp{Bool.pick(List<&2, List<&2, Ln>>, List.is_empty(&2, Ln, cur), done, List.reverse(&2, Ln, cur) <> done), [l], hold}