def pk.if

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

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

130def pk.if(ok: Bool, a: Array<U32>, +i: U32) -> Array<U32> & U32:
131  match ok:
132    case True{}:
133      Bytes.peek(a, i)
134    case False{}:
135      (a, 256)

Uses (6)

Used by (1)