def ident
import bend-toon-codec@0.1.0.0/src/fold.bend as Foldimport Base
37# An IdentifierSegment.
38def ident(+s: String) -> Bool:
39 match s:
40 case SNil{}:
41 False{}
42 case SCon{c, t}:
43 (Char.is_alpha(c) || Char.is_eq(c, '_')) && ident_tail(t)