def wrap

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

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

534def wrap(text: Bool, b: Bytes.Bytes) -> Val:
535  match text:
536    case True{}:
537      TStr{b}
538    case False{}:
539      BStr{b}

Uses (3)

Used by (2)