地图和字典有什么区别? - What is the difference between a map and a dictionary?

问题:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章