3 ms·
By that logic, a map is just a list where every odd element is a key and every even element is a value. There are semantic differences between maps and sets an
by RHSeeger 13y ago
By that logic, a map is just a list where every odd element is a key and every even element is a value.
There are semantic differences between maps and sets and lists. Just because you can use one to represent all the others doesn't remove the benefit of having all 3 available.