def build.short

bend-kit-bits@0.1.0.1 · bits.bend:272

import bend-kit-bits@0.1.0.1/bits.bend as Bits
import Base

272def build.short(ok: Bool, +msb: Bool, +max: U32, +xs: List<&2, Code>) -> Maybe<&1, Huff>:
273  match ok:
274    case True{}:
275      build.next(msb, max, xs, next.go(17n, 1, 0, 1, True{}, Array.new(U32, 5n, 0), Array.get(U32, count(xs, Array.new(U32, 5n, 0)), 0)))
276    case False{}:
277      None{}

Uses (11)

Used by (1)