def name.chars
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
343# whether every character is one a hub name holds
344def name.chars(text: String) -> Bool:
345 match text:
346 case SNil{}:
347 True{}
348 case SCon{+h, t}:
349 +rest = name.chars(t)
350 Bool.and(name.char(h), rest)