Run.said.rev: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/run.bend as Run Lines 61-67 of ezx@1.11.0.0/src/tool/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/run.bend&start_line=61&end_line=67 import Base import ezx@1.11.0.0/src/git/git.bend as Git # the first line that is a commit, or "" def said.rev(ls: List<&2, String>) -> String: match ls: case []: "" case +h <> t: said.next(Git.is_rev(h), h, _u => said.rev(t)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=is_rev https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/run.bend&name=said.next