Relock.held: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/add/relock.bend as Relock Lines 120-126 of ezx@1.13.0.0/src/add/relock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.13.0.0/src/add/relock.bend&start_line=120&end_line=126 import Base import ezx@1.13.0.0/src/lock/lock.bend as L # whether the lock holds a package under the hash def held(ps: List<&2, L.Pack>, +hash: String) -> Bool: match ps: case []: False{} case h <> t: L.any.step(String.eq(L.pack.hash(h), hash), _u => held(t, hash)) 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.13.0.0/src/lock/lock.bend&name=Pack https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/lock/lock.bend&name=any.step https://jend.leeeet.dev/definition.txt?path=ezx@1.13.0.0/src/lock/lock.bend&name=pack.hash