Run.loop: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 695-702 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=695&end_line=702 import Base import ezx@1.11.0.0/src/lock/world.bend as W import ezx@1.11.0.0/src/ws/up.bend as WsUp # the loop, under fuel. Every round adds at least one answer, since the # planner never asks what the World answers already. def loop(fuel: Nat, +lib: String, +back: WsUp.Back, +world: W.World) -> IO(Unit): match fuel: case 0n: IO.die(Unit, 1, "ez: the lock kept asking questions") case 1n+f: loop.step(WsUp.step(back, world), lib, back, world, w => loop(f, lib, back, 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/lock/run.bend&name=loop.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/up.bend&name=Back https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/up.bend&name=step