Table Goodies

A small package for extra (can't live without) functions for working with tables.

API / Library

Download (5 KB)
For Luanti 0.4.16/17 and above

How do I install this?

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 function
  • table.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.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.