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.4.6 Last updated 2017-07-18 16:28:41