def first_ok

cswap-bend-cli@0.1.0.0 · fmt/ylex.bend:151

import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as Ylex
import 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)

Uses (8)

Used by (1)