Cli.bad_choices: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1618-1624 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1618&end_line=1624 import Base def bad_choices(items: List<&2, Item>) -> Bool: match items: case Nil{}: False{} case OneOf{+values} <> tail: Bool.or(Bool.or(List.is_empty(&2, String, values), duplicate_strings(values)), bad_choices(tail)) case head <> tail: bad_choices(tail) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=duplicate_strings