def without
import near-v-framework@0.4.0.0/domain/architecture/view/ops.bend as Opsimport 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))