def same_for_all

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/nix_darwin/setting/ops.bend:527

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend as Ops
import Base

527def same_for_all(+what: String, +outs: List<&2, String>) -> String:
528  Bool.pick(String, Nat.is_gt(List.length(&2, String, distinct(outs)), 1n), "throw \"V: " ++ what ++ " differ per network service\"",
529    nix_list(words(Maybe.default(&2, String, List.head(&2, String, outs), ""))))

Uses (11)

Used by (1)