def opened

bolt@1.27.0.0 · src/rules/perf/strings.bend:34

import bolt@1.27.0.0/src/rules/perf/strings.bend as Strings
import Base

34# past its opening char, do the chars end on a closing quote?
35def opened(cs: List<&2, Char>) -> Bool:
36  match cs:
37    case Nil{}:
38      False{}
39    case Con{_q, rest}:
40      closes(rest, False{}, False{})

Uses (4)

Used by (1)