Run.answer.queries: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 562-573 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=562&end_line=573 import Base import ezx@1.11.0.0/src/lock/up.bend as Up import ezx@1.11.0.0/src/lock/plan.bend as Plan # every query of the lock's upgrade: git is asked the question as the planner # anchored it, and the answer is recorded under the question the upgrade # looks it up by def answer.queries(+lib: String, qs: List<&2, Plan.Query>) -> IO(List<&2, Up.Reply>): match qs: case []: IO.pure(List<&2, Up.Reply>, []) case Plan.Query{ask, git} <> t: do IO>: a : Up.Answer <- answer.up(lib, git) rest : List<&2, Up.Reply> <- answer.queries(lib, t) return Up.Reply{ask, a} <> rest Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure 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=ezx@1.11.0.0/src/lock/plan.bend&name=Query https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=answer.up https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/up.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/up.bend&name=Reply