def without

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

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

81def without(+k: String, xs: List<&2, String>) -> List<&2, String>:
82  match xs:
83    case []:
84      []
85    case +x <> rest:
86      keep_unless(String.eq(k, x), x, without(k, rest))

Uses (4)

Used by (1)