3 ms·
I'm confused. It's easy to emulate a set using a map, but how do you emulate a map using a set?
by xigoi 4y ago
I'm confused. It's easy to emulate a set using a map, but how do you emulate a map using a set?
- travisgriggs 4y agoYou model the key->value relationship, call it an association, and place associations in the set, where the equality/hash functions are performed on the association key.