Git.among.step: def of ezx@1.13.0.0 Import: import ezx@1.13.0.0/src/git/git.bend as Git Lines 46-56 of ezx@1.13.0.0/src/git/git.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.13.0.0/src/git/git.bend&start_line=46&end_line=56 import Base # one step of a scan looking for one hit, with the head's answer in hand. # `Bool.or` is an ordinary function and reduces both of its sides, so the # alphabet was read to its end for every char of every ref. The rest of the # scan arrives as a thunk, which is a value, and only the arm that wants it # applies it. def among.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