Function: combobulate-group-nodes

combobulate-group-nodes is a byte-compiled function defined in combobulate-navigation.el.

Signature

(combobulate-group-nodes LABELLED-NODES &optional GROUP-FN)

Documentation

Group LABELLED-NODES from a query by their label.

If GROUP-FN is nil the default is to use the car of each cons in LABELLED-NODES and group by the label.

If GROUP-FN is non-nil it must be a function that takes a single cons cell as an argument.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-navigation.el
(defsubst combobulate-group-nodes (labelled-nodes &optional group-fn)
  "Group LABELLED-NODES from a query by their label.

If GROUP-FN is nil the default is to use the `car' of each cons
in LABELLED-NODES and group by the label.

If GROUP-FN is non-nil it must be a function that takes a single
cons cell as an argument."
  (seq-sort
   (lambda (a b) (> (length a) (length b)))
   (seq-group-by (or group-fn #'car) labelled-nodes)))