table_goodies
This is a small package for extra (can't live without) functions for working with tables.
This includes:
table.equals(t1, t2)
->bool
, a recursive (deep) equality functiontable.merge(t1, t2, ...)
->t1
, a table merging function (t2 -> t1)table.map(t, f)
->t
, a mapping (apply f to every value) function
Why?
Because Lua needs more atomic modules which add functionality without creating a huge library. This module is supposed to be dead-simple to grab and start using in your project without adding anything extra. One of Lua's strengths is minimalism, and I think that it's ecosystem would do well to mirror that.