def scope_actions
near-v-framework@0.4.0.0 · domain/architecture/system/deployment/azure/ops.bend:118
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/azure/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/azure/type.bend as Az
118def scope_actions(+scope: String, xs: List<&2, Az.Permission>) -> List<&2, String>:
119 match xs:
120 case []:
121 []
122 case Az.Permission{+s, acts, _} <> rest:
123 actions_if(String.eq(scope, s), acts, scope_actions(scope, rest))