Cli.similar: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5836-5846 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5836&end_line=5846 import Base # T4: one suggestion or several. def similar(kind: String, found: List<&2, String>) -> List<&2, List<&2, Segment>>: match found: case Nil{}: Nil{} case name <> Nil{}: [plain(String.concat(["a similar ", kind, " exists: "])) <> quoted(name, [Green{}])] case name <> more: [plain(String.concat(["some similar ", kind, "s exist: "])) <> green_names(name <> more, True{})] Uses (9): 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=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Segment https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Style https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=green_names https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=plain https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=quoted