def upto
import bolt@1.27.0.0/src/rules/digest.bend as Digestimport 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)