Plan.stated.step: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/init/plan.bend as Plan Lines 72-82 of ezx@1.11.0.0/src/init/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/init/plan.bend&start_line=72&end_line=82 import Base # one step of a scan that is looking for one hit, with the head's answer in # hand. `Bool.or` is an ordinary function and reduces both of its sides, so a # scan written with it reads the whole list even when the first line answers. # The rest of the scan arrives as a thunk and only the arm that wants it # applies it. def stated.step(here: Bool, rest: Unit -> Bool) -> Bool: match here: case True{}: True{} case False{}: rest(Unit{}) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit