def Fmt.next.pick

bend-kit-fmt@0.1.0.0 · fmt.bend:79

import bend-kit-fmt@0.1.0.0/fmt.bend as Fmt
import Base

79def Fmt.next.pick(open: Bool, close: Bool, c: Char, t: String) -> Tok & String:
80  match open:
81    case True{}:
82      Fmt.next.open(t)
83    case False{}:
84      match close:
85        case True{}:
86          Fmt.next.close(t)
87        case False{}:
88          (TChr{c}, t)

Uses (8)

Used by (1)