$ luarocks install --server=https://luarocks.org/dev luatable
This library extends the common Lua table by adding iterators, operators and utility functions.
• Iterators:
- iter - step
- range - group
- slide - keys
- values - inverse
• Functional:
- map - reduce
- accept - reject
- flatten
• Utils:
- max, min, avg, sum, mul
- sort
- find
- pack
- clone
- slice
- merge
- unique
- difference
- intersect
- keySet, keyList
- valueSet, valueList, valueSequence
- sample
- shuffle
- reverse
- maximize, minimize
- removeNils
• Operators:
- at - get
- pop - head
- has - hasKey
- add
- last - first
- push - apppend
- empty - notEmpty
- clear