Names.Group.add.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 39-50 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=39&end_line=50 import Base # Groups # ====== # Values by name, in a map: each name's values, last first. def Group.add.of( -A: Data, got: Map<&2, List<&2, A>> & List<&2, A>, key: String, x: A ) -> Map<&2, List<&2, A>>: match got: case Tuple{groups, old}: Map.set(&2, List<&2, A>, groups, key, x <> old) Uses (6): 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=Map.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String