Module pl.MultiMap

MultiMap, a Map which has multiple values per key.

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

Functions

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


Functions

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

Parameters:

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

Returns:

    the map
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.2