Run.loop: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/run.bend as Run Lines 283-291 of ezx@1.11.0.0/src/tool/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/run.bend&start_line=283&end_line=291 import Base import ezx@1.11.0.0/src/tool/world.bend as TW import ezx@1.11.0.0/src/tool/plan.bend as TP # the loop, under fuel. Every round adds an answer, since the planner never # asks what the World answers already, and it asks at most five rounds, so # the fuel is only a guard. def loop(fuel: Nat, +world: TW.World) -> IO(Unit): match fuel: case 0n: IO.die(Unit, 1, "ez: ez tool kept asking questions") case 1n+f: loop.step(TP.step(world), world, w => loop(f, w)) Uses (7): 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=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/run.bend&name=loop.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/world.bend&name=World