Removes the duplicates in an array.
It is O(n) in complexity but you must an hashing function without collision
Type of the items in the array
Type of the key, it must be a base type.
Array from which to remove the duplicates
The function that is used to get an hash of the item to enable hashing. It MUST have no collision.
A copy of the array without duplicates.
Removes the duplicates in an array.
It is O(n) in complexity but you must an hashing function without collision