Function: magit-todos--coalesce-groups

magit-todos--coalesce-groups is a natively compiled function defined in magit-todos.el.

Signature

(magit-todos--coalesce-groups GROUPS)

Documentation

Return GROUPS, coalescing any groups with equal keys.

GROUPS should be an alist. Assumes that each group contains unique items. Intended for post-processing the result of
-group-by.

Source Code

;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defun magit-todos--coalesce-groups (groups)
  "Return GROUPS, coalescing any groups with `equal' keys.
GROUPS should be an alist.  Assumes that each group contains
unique items.  Intended for post-processing the result of
`-group-by'."
  (cl-loop with keys = (-uniq (-map #'car groups))
           for key in keys
           for matching-groups = (--select (equal key (car it)) groups)
           collect (cons key (apply #'append (-map #'cdr matching-groups)))))