Ops.home: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/ops.bend as Ops Lines 381-389 of near-v-framework@0.4.0.0/domain/architecture/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/ops.bend&start_line=381&end_line=389 import Base import near-v-framework@0.4.0.0/general/compound/ops.bend as CO import near-v-framework@0.4.0.0/domain/architecture/system/container/type.bend as Ct # The container a key belongs to: itself, or the one its component sits in, else the key itself. def home(+k: String, cs: List<&2, Ct.Container>) -> String: match cs: case []: k case c <> rest: match c: case Ct.Container{+ck, _, _, _, _, _, _, _, _, _, _, _, _, comps, _}: Bool.pick(String, String.eq(k, ck) || CO.has(component_keys(comps), k), ck, home(k, rest)) Uses (8): 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=List 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=near-v-framework@0.4.0.0/domain/architecture/ops.bend&name=component_keys https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/container/type.bend&name=Container https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/general/compound/ops.bend&name=has