def Group.of

bend-lint-api@0.2.0.0 · shared/names.bend:64

import bend-lint-api@0.2.0.0/shared/names.bend as Names
import Base

64def Group.of(
65  ~A: Data,
66  ~key: A -> String,
67  xs: List<&2, A>,
68  groups: Map<&2, List<&2, A>>
69) -> Map<&2, List<&2, A>>:
70  match xs:
71    case Nil{}:
72      groups
73    case Con{+x, rest}:
74      Group.of(~A, ~key, rest, Group.add(A, groups, key(x), x))

Uses (4)

Used by (0)

No other definition uses this definition.