def looks.first

ezx@1.11.0.0 · src/ez/target.bend:317

import ezx@1.11.0.0/src/ez/target.bend as Target
import Base

317# the first char: `/`, or the start of `./`, `../` or `~/`
318def looks.first(mark: Mark, rest: String) -> Bool:
319  match mark:
320    case Slash{}:
321      True{}
322    case Dot{}:
323      looks.dot(rest)
324    case Tilde{}:
325      looks.slash(rest)
326    case Word{}:
327      False{}
328    case Other{}:
329      False{}

Uses (5)

Used by (1)