def chosen

bolt@1.27.0.0 · src/lsp/enc.bend:45

import bolt@1.27.0.0/src/lsp/enc.bend as Enc
import Base

45# the encoding for utf-32 offered or not
46def chosen(yes: Bool) -> Enc:
47  match yes:
48    case True{}:
49      Utf32{}
50    case False{}:
51      Utf16{}

Uses (2)

Used by (1)