出于文档目的,我正在为这个简单的数据结构寻找规范或标准名称。似乎应该有一个,但谷歌和我的内存力让我失望。
这是 JSON 样式表示法的示例:
{
drummers: ['Ringo Starr', 'Danny Carey', 'Keith Moon'],
singers: ['Chris Cornell', 'Peter Gabriel'],
guitarists: ['Stevie Ray Vaughan', 'Slash'],
cowbell_players: [],
bassists: ['Flea']
}
最佳答案
A multimap , 也许?
A multimap (sometimes also multihash) is a generalization of a map or associative array abstract data type in which more than one value may be associated with and returned for a given key. (snip) Often the multimap is implemented as a map with lists or sets as the map values.
关于language-agnostic - 列表字典有更正式的术语或名称吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5490246/