Mercurial Hosting > luan
view core/src/luan/modules/Table.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | 1e69d9c21461 |
children |
line wrap: on
line source
java() local TableLuan = require "java:luan.modules.TableLuan" local M = {} M.clear = TableLuan.clear M.concat = TableLuan.concat M.copy = TableLuan.copy M.insert = TableLuan.insert M.new_property_table = TableLuan.new_property_table M.pack = TableLuan.pack M.remove = TableLuan.remove M.sort = TableLuan.sort M.unpack = TableLuan.unpack local Luan = require "luan:Luan.luan" local pairs = Luan.pairs function M.is_empty(t) return pairs(t)() == nil end return M