Class pl.MultiMap

MultiMap, a Map which has multiple values per key.

Dependencies: pl.utils, pl.class, pl.List, pl.Map

Methods

pl.multimap:update (t) update a MultiMap using a table.
pl.multimap:set (key, val) add a new value to a key.


Methods

pl.multimap:update (t)
update a MultiMap using a table.

Parameters:

  • t either a Multimap or a map-like table.

Returns:

    the map
pl.multimap:set (key, val)
add a new value to a key. Setting a nil value removes the key.

Parameters:

  • key the key
  • val the value

Returns:

    the map
generated by LDoc 1.5.0