def has_digit
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11import Base
102def has_digit(s: String) -> Bool:
103 match s:
104 case SNil{}:
105 False{}
106 case SCon{+c, t}:
107 Bool.or(Char.is_digit(c), has_digit(t))
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11import Base
102def has_digit(s: String) -> Bool:
103 match s:
104 case SNil{}:
105 False{}
106 case SCon{+c, t}:
107 Bool.or(Char.is_digit(c), has_digit(t))