#NEWLINE# def add( self , key ) : #NEWLINE# #INDENT# if ( key not in self . map ) : #NEWLINE# #INDENT# end = self . end #NEWLINE# curr = end [ PREV ] #NEWLINE# curr [ NEXT ] = end [ PREV ] = self . map [ key ] = [ key , end , end ]