問題:
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