def pr.opt

bend-kit-tar@0.3.0.0 · tar.bend:187

import bend-kit-tar@0.3.0.0/tar.bend as Tar
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

187def pr.opt(has: Bool, b: Bytes.Bytes) -> Maybe<&1, Bytes.Bytes>:
188  match has:
189    case True{}:
190      Some{b}
191    case False{}:
192      None{}

Uses (3)

Used by (1)