Lock.has: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/lock.bend as Lock Lines 401-409 of ezx@1.11.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/lock.bend&start_line=401&end_line=409 import Base # whether a package is already resolved. The wanted hash is compared first, # the way pkg's `fresh` compares a path, so a walk that passes over a hash it # has is a walk whose hashes are distinct without a symmetry lemma. def has(ds: List<&2, Pack>, +wanted: String) -> Bool: match ds: case []: False{} case x <> t: any.step(String.eq(wanted, pack.hash(x)), _u => has(t, wanted)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=Pack https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=any.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=pack.hash