def first_ok
import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as Yleximport Base
151def first_ok(s: String) -> Bool:
152 match s:
153 case SNil{}:
154 False{}
155 case SCon{Chr{+c}, t}:
156 Bool.not(bad_first(c)) && Bool.not(bad_char(c)) && rest_ok(t, c)