3 ms·
You can do it the way a lot of libraries do where you require that anything you want in a set implement an interface for hashing and equality testing. Then you
by mistercow 11y ago
You can do it the way a lot of libraries do where you require that anything you want in a set implement an interface for hashing and equality testing. Then you use an object with hashes for keys and arrays for values.