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