def maybe

bend-osdev-mode-core@0.1.0.0 · check.bend:42

import bend-osdev-mode-core@0.1.0.0/check.bend as Check
import Base
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M

42def maybe(m: Maybe<&2, M.CmBlock>) -> String:
43  match m:
44    case None{}:
45      "none"
46    case Some{b}:
47      M.CmBlock.hex(b)

Uses (4)

Used by (1)