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