Listmap
Listmap is a data structure that stores associations from keys to lists of values, combining a map with a collection of values per key. It enables one key to be related to multiple values and supports standard map operations while allowing accumulation of multiple entries for each key.
Typical operations include: add or append(key, value) to place a value into the key’s list; get(key) to
Implementation and complexity: a Listmap is usually built by wrapping a standard map from keys to lists.
Common use cases include representing one-to-many relationships, such as indexing terms to document positions, event listeners