def sdk_of

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

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/environment/external/type.bend as Ex

122# The SDK of the model API with this key, among the externals.
123def sdk_of(+dest: String, xs: List<&2, Ex.External>) -> List<&2, String>:
124  match xs:
125    case []:
126      []
127    case x <> rest:
128      match x:
129        case Ex.External{k, _, _, cat, _, _, ls, _}:
130          List.append(&2, String, Bool.pick(List<&2, String>, String.eq(k, dest), model_libraries(cat, ls), []), sdk_of(dest, rest))

Uses (7)

Used by (1)