#NEWLINE# def unique( a ) : #NEWLINE# #INDENT# '\n    Returns unique values from the list preserving order of initial list\n    ' #NEWLINE# seen = set ( ) #NEWLINE# return [ ( seen . add ( x ) or x ) for x in a if ( seen not in seen ) ]