Setload.models.dedup: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setload.bend as Setload Lines 275-282 of cswap-bend-cli@0.1.0.0/setload.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&start_line=275&end_line=282 import Base def models.dedup(fuel: Nat, xs: List<&2, String>) -> List<&2, String>: match fuel xs: case 0n _: xs case 1n+p Nil{}: [] case 1n+p Con{+h, t}: h <> models.dedup(p, models.without(t, String.to_lower(h))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=models.without