def err.of

cswap-bend-cli@0.1.0.0 · json/scan.bend:52

import cswap-bend-cli@0.1.0.0/json/scan.bend as Scan
import Base
import cswap-bend-cli@0.1.0.0/json/lex.bend as Lex

52def err.of(toks: List<&2, Lex.Tok>) -> String:
53  match toks:
54    case Nil{}:
55      ""
56    case Con{Lex.TErr{m}, t}:
57      m
58    case Con{h, t}:
59      err.of(t)

Uses (3)

Used by (1)