Plan.packs.ok: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/plan.bend as Plan Lines 390-399 of ezx@1.11.0.0/src/lock/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/plan.bend&start_line=390&end_line=399 import Base import ezx@1.11.0.0/src/lock/lock.bend as L # whether every package can be written, and no hash is written twice def packs.ok(ps: List<&2, L.Pack>) -> Bool: match ps: case []: True{} case +h <> +t: +rest = packs.ok(t) Bool.and(Bool.and(paths.ok(L.pack.files(h)), Bool.and(clean.all(pack.values(h)), Bool.not(L.has(t, L.pack.hash(h))))), rest) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=has https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=pack.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=pack.hash https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=clean.all https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=pack.values https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=paths.ok