Setimp.top_val: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setimp.bend as Setimp Lines 300-303 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=300&end_line=303 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def top_val(+k: String, +v: Json.Json) -> Result<&2, &2, String, Json.Json>: Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(k, "autoswitch") || String.eq(k, "ui"), sec_obj(k, v), Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(k, "profiles"), profiles_val(v), Bool.pick(Result<&2, &2, String, Json.Json>, String.eq(k, "active_profile"), active_val(v), Done{v}))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or 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/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=active_val https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=profiles_val https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=sec_obj