Git.named.step: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/git/git.bend as Git Lines 124-133 of ezx@1.11.0.0/src/git/git.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/git/git.bend&start_line=124&end_line=133 import Base # one step of the search, with the head's answer in hand. A recursive call in # an arm of a `Bool.pick` is not an arm at all: it is built whatever the # condition says, so the first row that answered still cost a walk of every # row after it. def named.step(here: Bool, rev: String, rest: Unit -> String) -> String: match here: case True{}: rev 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