def keep_if

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/azure/ops.bend:7

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

7def keep_if(c: Bool, x: String, rest: List<&2, String>) -> List<&2, String>:
8  match c:
9    case True{}:
10      x <> rest
11    case False{}:
12      rest

Uses (3)

Used by (1)