def on_devices

near-v-framework@0.4.0.0 · domain/architecture/ops.bend:372

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/deployment/type.bend as D

372def on_devices(ns: List<&2, D.Node>) -> List<&2, String>:
373  match ns:
374    case []:
375      []
376    case n <> rest:
377      match n:
378        case D.Node{_, _, _, r, _, _, kids, ins}:
379          keep_all(is_device(r), ins, List.append(&2, String, on_devices(kids), on_devices(rest)))

Uses (6)

Used by (2)