问题:
I know a map is a data structure that maps keys to values.我知道地图是一种将键映射到值的数据结构。 Isn't a dictionary the same?字典不一样吗? What is the difference between a map and a dictionary 1 ?地图和字典1 有什么区别?
1. I am not asking for how they are defined in language X or Y (which seems to be what generally people are asking here on SO), I want to know what is their difference in theory. 1. 我不是在问它们在语言 X 或 Y 中是如何定义的(这似乎是人们在 SO 上普遍提出的问题),我想知道它们在理论上的区别是什么。
解决方案:
参考一: https://en.stackoom.com/question/C6HE参考二: https://stackoom.com/question/C6HE