def ident

bend-toon-codec@0.1.0.0 · src/fold.bend:37

import bend-toon-codec@0.1.0.0/src/fold.bend as Fold
import 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)

Uses (8)

Used by (3)