cl:has-duplicates?   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/scheme.xtm

Implementation

;;;@ Checks to see if a list has any duplicate MEMBERs.
(define (cl:has-duplicates? lst)
  (cond ((null? lst) #f)
  ((member (car lst) (cdr lst)) #t)
  (else (cl:has-duplicates? (cdr lst)))))


Back to Index