Function: magit--separate
magit--separate is a natively compiled function defined in
magit-base.el.
Signature
(magit--separate PRED LIST)
Documentation
Separate elements of LIST that do and don't satisfy PRED.
Return a list of two lists; the first containing the elements that do satisfy PRED and the second containing the elements that don't.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-base.el
;;; Missing from Emacs
(defun magit--separate (pred list)
"Separate elements of LIST that do and don't satisfy PRED.
Return a list of two lists; the first containing the elements that
do satisfy PRED and the second containing the elements that don't."
(let (y n)
(dolist (elt list)
(push elt (if (funcall pred elt) y n)))
(list (nreverse y)
(nreverse n))))