<s> from hy . models . list import HyList <EOL> from functools import reduce <EOL> class HySet ( HyList ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , items ) : <EOL> items = sorted ( items ) <EOL> items = list ( reduce ( lambda r , v : v in r and r or r + [ v ] , items , [ ] ) ) <EOL> super ( HySet , self ) . __init__ ( items ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( "<STR_LIT:U+0020>" . join ( [ repr ( x ) for x in self ] ) ) </s>
