Digest.before: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/digest.bend as Digest Lines 159-165 of bolt@1.27.0.0/src/rules/digest.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/digest.bend&start_line=159&end_line=165 import Base import bolt@1.27.0.0/src/syntax/bind.bend as Bind import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy # the uses, in order, before the first one at or past the line def before(us: List<&2, Bind.Use>, +at: U32) -> List<&2, Bind.Use>: match us: case Nil{}: Nil{} case Con{Bind.Use{nm, +l, c, tt}, rest}: Lazy.stop(List<&2, Bind.Use>, U32.is_le(at, l), [], _u => Bind.Use{nm, l, c, tt} <> before(rest, at)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lazy/lazy.bend&name=stop https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=Use