def close.yes

bolt@1.27.0.0 · src/syntax/word.bend:22

import bolt@1.27.0.0/src/syntax/word.bend as Word
import Base

22# the run holds the column: keep it; otherwise the hit so far
23def close.yes(ok: Bool, run: List<&2, Char>, hit: Maybe<&2, String>) -> Maybe<&2, String>:
24  match ok:
25    case True{}:
26      Some{text(run)}
27    case False{}:
28      hit

Uses (6)

Used by (1)