A set function that employs hashing.