Function: projection--uniquify

projection--uniquify is a natively compiled function defined in projection-utils.el.

Signature

(projection--uniquify COLLECTION)

Documentation

Helper to remove duplicates from COLLECTION.

Source Code

;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-utils.el
;; Collections

(defun projection--uniquify (collection)
  "Helper to remove duplicates from COLLECTION."
  (thread-last
    collection
    (append (list (make-hash-table :test 'equal)))
    (cl-reduce (lambda (hash-table target)
                 (puthash target t hash-table)
                 hash-table))
    (hash-table-keys)))