Plan.uniq: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lint/plan.bend as Plan Lines 214-222 of bolt@1.27.0.0/src/lint/plan.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lint/plan.bend&start_line=214&end_line=222 import Base # each path once, where it first appears def uniq(ps: List<&2, String>, +seen: List<&2, String>) -> List<&2, String>: match ps: case Nil{}: Nil{} case Con{+p, rest}: +dup = seen.has(seen, p) +more = uniq(rest, p <> seen) Bool.pick(List<&2, String>, dup, more, p <> more) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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=bolt@1.27.0.0/src/lint/plan.bend&name=seen.has