def hd.wide

bend-kit-cbor@0.3.0.0 · cbor.bend:465

import bend-kit-cbor@0.3.0.0/cbor.bend as Cbor
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

465def hd.wide(ok: Bool, n: Nat, a: Array<U32>, +i: U32, +major: U32, +ai: U32) -> Array<U32> & Maybe<&2, Hd>:
466  match ok:
467    case True{}:
468      hd.words(n, Bytes.peek(a, (i + 1 : U32)), (i + 1 : U32), 0, 0, major, ai)
469    case False{}:
470      (a, None{})

Uses (11)

Used by (1)