Relock.found.pick: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/relock.bend as Relock Lines 40-47 of ezx@1.11.0.0/src/add/relock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/relock.bend&start_line=40&end_line=47 import Base # this file's text when it is the one at the path, else the rest's. The rest # arrives as a thunk, so the first hit ends the scan. def found.pick(hit: Bool, body: String, rest: Unit -> String) -> String: match hit: case True{}: body 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