Module lib.container.defaulttable

Create a table where every key is inialized with a default value when first accessed.

Providing a table as the initial value will result in a shallow copy of the given table being made when a key is initially accessed. Providing a (zero argument) function will result in the function being called to obtain the initial value. Providing any other value will result in that value being used as the initial value for keys (which could result structural sharing between keys).

generated by LDoc 1.4.6 Last updated 2021-01-11 12:10:11