def bare.at

ezx@1.11.0.0 · src/toml/toml.bend:129

import ezx@1.11.0.0/src/toml/toml.bend as Toml
import Base

129# a char a bare key may hold. `+ch` because it is asked four questions; a
130# predicate handed to a fold may not take one, so it is split out here.
131def bare.at(+ch: Char) -> Bool:
132  Bool.or(Char.is_alpha(ch), Bool.or(Char.is_digit(ch),
133    Bool.or(Char.is_eq(ch, '_'), Char.is_eq(ch, '-'))))

Uses (6)

Used by (1)