def seek.stop

bolt@1.27.0.0 · src/syntax/bind.bend:995

import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import Base

995# does a cursor's head sit at or after a position (the seek stops there)?
996def seek.stop(cur: List<&2, Bind>, +line: U32, +col: U32) -> Bool:
997  match cur:
998    case Nil{}:
999      True{}
1000    case Con{Bind{name, +l, +c, kind, note}, rest}:
1001      Bool.not(before(l, c, line, col))

Uses (6)

Used by (2)