Pkg.look.step: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/pkg/pkg.bend as Pkg Lines 733-740 of ezx@1.13.0.0/src/pkg/pkg.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.13.0.0/src/pkg/pkg.bend&start_line=733&end_line=740 import Base # one step of a lookup, with the head's answer in hand. The rest arrives as a # thunk, so a hit ends the search. def look.step(hit: Bool, text: String, rest: Unit -> Maybe<&2, String>) -> Maybe<&2, String>: match hit: case True{}: Some{text} case False{}: rest(Unit{}) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit