Plan.put.one: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/plan.bend as Plan Lines 983-1000 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=983&end_line=1000 import Base # one effect's part in what a path is left holding, with what the effects # after it leave already known. A later write wins. def put.one(effect: Effect, +path: String, rest: Wrote) -> Wrote: match effect: case Write{at, text}: match rest: case Kept{}: Bool.pick(Wrote, String.eq(at, path), Put{text}, Kept{}) case Put{later}: Put{later} case Lay{_place, _hash, _files}: rest case Drop{_hash}: rest case Say{_text}: rest case Name{_nv, _hash}: rest Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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/plan.bend&name=Effect https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=Wrote