Run.loop.step: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/doctor/run.bend as Run Lines 98-107 of ezx@1.11.0.0/src/doctor/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/doctor/run.bend&start_line=98&end_line=107 import Base import ezx@1.11.0.0/src/lock/run.bend as Run import ezx@1.11.0.0/src/doctor/world.bend as DW import ezx@1.11.0.0/src/doctor/plan.bend as DP # the planner's step: its questions answered and the loop gone round again, # or its plan run def loop.step(st: DP.Step, +lib: String, world: DW.World, go: DW.World -> IO(Unit)) -> IO(Unit): match st: case DP.Asking{asks}: do IO: rs : List<&2, DW.Reply> <- answer.all(lib, asks) go(more(world, rs)) case DP.Run{pl}: Run.exec.plan("", pl) Uses (11): 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=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/doctor/plan.bend&name=Step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/doctor/run.bend&name=answer.all https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/doctor/run.bend&name=more https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/doctor/world.bend&name=Reply https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/doctor/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=exec.plan