def cd.step
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlibimport Base
import bend-kit-bits@0.1.0.1/bits.bend as Bits
287def cd.step(stop: Bool, h: Bits.Huff, b: Br, acc: List<&2, U32>, +n: U32, +prev: U32, +bad: Bool, +total: U32) -> Cd:
288 match stop:
289 case True{}:
290 Cd{h, b, acc, n, prev, bad}
291 case False{}:
292 cd.sym(br.sym(h, b), acc, n, prev, total)