Run.loop: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/run.bend as Run Lines 68-75 of ezx@1.11.0.0/src/add/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/run.bend&start_line=68&end_line=75 import Base import ezx@1.11.0.0/src/add/relock.bend as AR import ezx@1.11.0.0/src/ws/relock.bend as Rel # the loop, under fuel. Every round adds an answer, since the planner never # asks what the World answers already, so the fuel is only a guard. def loop(fuel: Nat, +lib: String, +ws: Rel.Ws, +world: AR.World) -> IO(Unit): match fuel: case 0n: IO.die(Unit, 1, "ez: ez add kept asking questions") case 1n+f: loop.step(Rel.add.next(ws, world), lib, world, w => loop(f, lib, ws, w)) 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.die https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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/add/relock.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/run.bend&name=loop.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/relock.bend&name=Ws https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/relock.bend&name=add.next