def bare

ezx@1.11.0.0 · src/ez/named.bend:83

import ezx@1.11.0.0/src/ez/named.bend as Named
import Base
import ezx@1.11.0.0/src/ez/target.bend as Tgt

83# a TOML bare key: at least one char, each a letter, a digit, `-` or `_`. Only
84# such a name can stand in `[deps.<name>]` unquoted.
85def bare(text: String) -> Bool:
86  match text:
87    case SNil{}:
88      False{}
89    case SCon{+h, t}:
90      bare.step(Tgt.plain.at(h), _u => bare.rest(t))

Uses (5)

Used by (3)