Setimp.parse_named: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setimp.bend as Setimp Lines 123-126 of cswap-bend-cli@0.1.0.0/setimp.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&start_line=123&end_line=126 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/fmt/yaml.bend as Yaml import cswap-bend-cli@0.1.0.0/fmt/toon.bend as Toon import cswap-bend-cli@0.1.0.0/fmt/csv.bend as Csv def parse_named(+f: String, +text: String) -> Result<&2, &2, String, Json.Json>: Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(f, "json"), Json.parse(text), Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(f, "yaml"), Yaml.parse(text), Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(f, "toon"), Toon.parse(text), csv_doc(Csv.parse(text))))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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=cswap-bend-cli@0.1.0.0/fmt/csv.bend&name=parse https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/toon.bend&name=parse https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/yaml.bend&name=parse 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/json.bend&name=parse https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=csv_doc