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