def components_of
near-v-framework@0.4.0.0 · domain/architecture/ops.bend:227
import near-v-framework@0.4.0.0/domain/architecture/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/container/type.bend as Ct
227
228def components_of(+k: String, cs: List<&2, Ct.Container>) -> List<&2, String>:
229 match cs:
230 case []:
231 []
232 case c <> rest:
233 match c:
234 case Ct.Container{ck, _, _, _, _, _, _, _, _, _, _, _, _, comps, _}:
235 Bool.pick(List<&2, String>, String.eq(k, ck), component_keys(comps), components_of(k, rest))