def to_compound
near-v-framework@0.4.0.0 · domain/architecture/ops.bend:153
import near-v-framework@0.4.0.0/domain/architecture/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/general/rose/type.bend as R
import near-v-framework@0.4.0.0/general/compound/type.bend as C
import near-v-framework@0.4.0.0/domain/architecture/system/type.bend as S
import near-v-framework@0.4.0.0/domain/architecture/type.bend as A
153def to_compound(a: A.Architecture) -> C.Compound<A.Element>:
154 match a:
155 case A.Architecture{s, env}:
156 match s:
157 case S.System{k, n, d, +cs, _, _}:
158 with_env(R.Rose{k, A.Element{n, d, "", A.SystemLevel{}}, container_roses(cs)}, cs, env)