Scheme: Detecting duplicate elements in a list
        Posted  
        
            by Kyle Krull
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Kyle Krull
        
        
        
        Published on 2010-03-03T18:59:22Z
        Indexed on 
            2010/03/12
            15:07 UTC
        
        
        Read the original article
        Hit count: 750
        
Does R6RS or Chez Scheme v7.9.4 have a library function to check if a list contains duplicate elements?
Alternatively, do either have any built in functionality for sets (which dis-allow duplicate elements)? So far, I've only been able to find an example here.
The problem with that is that it doesn't appear to actually be part of the Chez Scheme library. Although I could write my own version of this, I'd much rather use a well known, tested, and maintained library function - especially given how basic an operation this is.
So a simple "use these built-in functions" or a "no built-in library implements this" will suffice. Thanks!
© Stack Overflow or respective owner