LuaRocks.org had a security incident in September 2026. Read the incident report.

luatable

A library that gives superpowers to Lua tables

$ luarocks install luatable

Table helpers for Lua: iterators, functional helpers, set operations and utilities.
`require "luatable"` returns its own module and leaves the global `table` alone
(`table.install()` copies the functions there on request). Wrappers give a plain table
these as methods plus operator overloads (+ - * .. ==), without putting a metatable on
the data. Works on Lua 5.1 - 5.4 and LuaJIT 2.1.

local table = require "luatable"
local t = table { 1, 2, 3, 4 }
print(t:accept(table.even):map(table.sqr):reduce(0, table.sum)) --> 20

Wrappers: table{...} / new, wrap, unwrap, iswrapper, ismethod, get, set, len, pairs, ipairs, strict, install
More: https://github.com/Luca96/lua-table

Versions

scm-1dev8 years ago(revision: 2)99 downloads
0.9.0-17 days ago1 download
0.8.0-115 days ago12 downloads

Dependencies

lua >= 5.1

Dependency for

lua-reg

Labels

Manifests