Ignore.has: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ledger/ignore.bend as Ignore Lines 268-274 of ezx@1.11.0.0/src/ledger/ignore.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&start_line=268&end_line=274 import Base # whether a file already has a line of this kind def has(ls: List<&2, Line>, +want: Rule) -> Bool: match ls: case []: False{} case Line{+what, _text} <> t: has.step(same(what, want), _u => has(t, want)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&name=Line https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&name=Rule https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&name=has.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&name=same