Setload.norm.choice: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setload.bend as Setload Lines 83-88 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=83&end_line=88 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def norm.choice(choices: String, dflt: Json.Json, v: Json.Json) -> Json.Json: match v: case Json.JStr{+s}: norm.pick(has_str(String.split(choices, ','), s), Json.JStr{s}, dflt) case _: dflt Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.split https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=has_str https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=norm.pick