Sets are typically implemented as hashtables where keys are set members and values are some constant (True or something). Since hashtable is a generalization of set, it coul