def destinations

near-v-framework@0.4.0.0 · domain/architecture/system/container/ops.bend:96

import near-v-framework@0.4.0.0/domain/architecture/system/container/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/relationship/type.bend as Rel

96# ---- the SDK of each model API a container calls ----
97def destinations(rs: List<&2, Rel.Relationship>) -> List<&2, String>:
98  match rs:
99    case []:
100      []
101    case r <> rest:
102      match r:
103        case Rel.Relationship{d, _, _, _}:
104          d <> destinations(rest)

Uses (3)

Used by (2)