Lint.loop: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lint.bend as Lint Lines 95-103 of bolt@1.27.0.0/src/lint.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lint.bend&start_line=95&end_line=103 import Base import bolt@1.27.0.0/src/lint/world.bend as W import bolt@1.27.0.0/src/lint/plan.bend as Plan # the loop, under fuel: the walk's bound, plus a round for the texts and one # to plan. Every round adds at least one answer, since the planner never asks # what the World answers already. def loop(fuel: Nat, +world: W.World) -> IO(Unit): # noqa: L001 IO driver match fuel: case 0n: IO.die(Unit, 1, "bolt: the lint kept asking") case 1n+f: loop.step(Plan.wants(world), world, ww => loop(f, ww)) 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=bolt@1.27.0.0/src/lint/plan.bend&name=wants https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lint/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lint.bend&name=loop.step