Function: ps-remove-duplicates

ps-remove-duplicates is a byte-compiled function defined in ps-print.el.gz.

Signature

(ps-remove-duplicates LIST)

Source Code

;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
;; Return a list of the distinct elements of LIST.
;; Elements are compared with `equal'.
(defun ps-remove-duplicates (list)
  (let (new (tail list))
    (while tail
      (or (member (car tail) new)
	  (setq new (cons (car tail) new)))
      (setq tail (cdr tail)))
    (nreverse new)))