def pk.if

bend-kit-csv@0.3.0.0 · csv.bend:41

import bend-kit-csv@0.3.0.0/csv.bend as Csv
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

41# Byte i, or 256 past the end.
42def pk.if(ok: Bool, a: Array<U32>, +i: U32) -> Array<U32> & U32:
43  match ok:
44    case True{}:
45      Bytes.peek(a, i)
46    case False{}:
47      (a, 256)

Uses (6)

Used by (1)