|
Holumbus.Data.AccuMap | Portability | portable | Stability | experimental | Maintainer | Stefan Schmidt (stefanschmidt@web.de) |
|
|
|
Description |
Version : 0.1
A map of key-value-pairs. The values are hold in a list, so adding the same
key-value-pair twice to the map, will result in storing the value twice.
Even the sequence of adding the values will be saved.
The name AccuMap is from accumulation map. You can use this map to easily
storing all you key-value-pairs. After that you can all values-lists by
key. Unlike the MultiMap, you don't lose the information of identical values
and their order of adding.
Most functions are inspired by the Data.Map type.
|
|
Synopsis |
|
|
|
Documentation |
|
|
the AccuMap datatype
| Instances | |
|
|
|
Creates an empty AccuMap.
|
|
|
Test, if AccuMap is empty.
|
|
|
Insert a key-value-pair to the AccuMap.
|
|
|
Insert a key and a list of values to the AccuMap.
Faster than adding all pair one by one.
|
|
|
Get the list of values for one key. If the key doesn't exists,
an empty list is returned.
|
|
|
Test, if the key is in the AccuMap.
|
|
|
Deletes a key and all its values from the AccuMap.
|
|
|
Combines two AccuMaps, the ordering of the two maps is
significant for the order of the values-elements.
|
|
|
Creates an AccuMap from a list.
|
|
|
Creates an AccuMap from a tuple list.
|
|
|
Transforms an AccuMap to a list.
|
|
Produced by Haddock version 2.4.2 |