Pkg.escaped.step: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg Lines 591-600 of ezx@1.11.0.0/src/pkg/pkg.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&start_line=591&end_line=600 import Base # one step of the search, with the head's answer in hand. A search that puts # its recursion in an arm of a `Bool.pick` is not a search: the arm is built # whatever the answer, so the first escaping path still costs a walk of every # file after it. The thunk is what makes the stop a stop. def escaped.step(here: Bool, at: String, rest: Unit -> String) -> String: match here: case True{}: at case False{}: rest(Unit{}) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit