def upto

bolt@1.27.0.0 · src/rules/digest.bend:175

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

175# the uses before the line, when there is one; else all of them
176def upto(us: List<&2, Bind.Use>, mm: Maybe<&2, U32>) -> List<&2, Bind.Use>:
177  match mm:
178    case None{}:
179      us
180    case Some{at}:
181      before(us, at)

Uses (5)

Used by (1)