def upper_first

bolt@1.27.0.0 · src/syntax/lex.bend:250

import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import Base

250# does the text start with a capital?
251def upper_first(cs: List<&2, Char>) -> Bool:
252  match cs:
253    case Nil{}:
254      False{}
255    case Con{c, t}:
256      Char.is_upper(c)

Uses (4)

Used by (1)