def has_no_underscore

bend-lint-rules@0.2.0.0 · layout/case.bend:32

import bend-lint-rules@0.2.0.0/layout/case.bend as Case
import Base

32# Case
33# ====
34def has_no_underscore(s: String) -> Bool:
35  match s:
36    case SNil{}:
37      True{}
38    case SCon{'_', rest}:
39      False{}
40    case SCon{c, rest}:
41      has_no_underscore(rest)

Uses (6)

Used by (1)