Function: dash--uniq-perms
dash--uniq-perms is a byte-compiled function defined in dash.el.
Signature
(dash--uniq-perms LIST)
Documentation
Return a list of permutations of LIST.
LIST is treated as if all its elements are distinct.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun dash--uniq-perms (list)
"Return a list of permutations of LIST.
LIST is treated as if all its elements are distinct."
(let* ((vec (vconcat list))
(idxs (copy-sequence vec)))
;; Just construct a vector of the list's indices and permute that.
(dotimes (i (length idxs))
(aset idxs i i))
(dash--lex-perms idxs vec)))