Cli.choice_reason: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2050-2057 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2050&end_line=2057 import Base def choice_reason(found: Maybe<&2, List<&2, String>>, value: String) -> Maybe<&2, String>: match found: case None{}: None{} case Some{+values}: Bool.pick(Maybe<&2, String>, List.contains(~String, ~String.eq, values, value), None{}, Some{choices_reason(values)}) Uses (7): 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=List.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=choices_reason