def chars_ok

cswap-bend-cli@0.1.0.0 · profile.bend:408

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base

408def chars_ok(+s: String) -> Bool:
409  match s:
410    case SNil{}:
411      True{}
412    case SCon{c, t}:
413      (Char.is_alpha(c) || Char.is_digit(c) || Char.is_eq(c, '-') || Char.is_eq(c, '_')) && chars_ok(t)

Uses (8)

Used by (1)