The list of objects to check for duplicates.
The key to check for uniqueness.
given array but duplicates removed.
The list of objects to check for duplicates.