Names.Group.of: def of bend-lint-api@0.2.0.0 Import: import bend-lint-api@0.2.0.0/shared/names.bend as Names Lines 64-74 of bend-lint-api@0.2.0.0/shared/names.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-api@0.2.0.0/shared/names.bend&start_line=64&end_line=74 import Base def Group.of( ~A: Data, ~key: A -> String, xs: List<&2, A>, groups: Map<&2, List<&2, A>> ) -> Map<&2, List<&2, A>>: match xs: case Nil{}: groups case Con{+x, rest}: Group.of(~A, ~key, rest, Group.add(A, groups, key(x), x)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/names.bend&name=Group.add