def Group.add
import bend-lint-api@0.2.0.0/shared/names.bend as Namesimport Base
52# `groups` with `x` added under `key`. A key's list is last first; `Group.get` gives it in order.
53def Group.add(-A: Data, groups: Map<&2, List<&2, A>>, +key: String, x: A) -> Map<&2, List<&2, A>>:
54 Group.add.of(A, Map.get(List<&2, A>, [], groups, key), key, x)