def path.eqless

ezx@1.11.0.0 · src/lock/plan.bend:368

import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base

368# whether a file path holds no `=`. A path is written as a quoted key, and
369# `bootstrap.sh`, which reads the lock without ez, cuts a pair line at its
370# first `=`, so a path holding one would read back there as another path with
371# another sum. eztoml 0.4 reads a quoted key whole; the restriction lifts when
372# bootstrap.sh does too.
373def path.eqless(text: String) -> Bool:
374  match text:
375    case SNil{}:
376      True{}
377    case SCon{+h, t}:
378      +rest = path.eqless(t)
379      Bool.and(Bool.not(Char.is_eq(h, '=')), rest)

Uses (6)

Used by (2)