view core/src/luan/modules/Table.luan @ 565:22bfd8a2eaee

do Table documentation; replace Table.clone and Table.sub_list with Table.copy;
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Jul 2015 00:47:00 -0600
parents 92c3d22745b8
children 1e69d9c21461
line wrap: on
line source

java()
local TableLuan = require "java:luan.modules.TableLuan"

local M = {}

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"
local pairs = Luan.pairs

function M.is_empty(t)
	return pairs(t)() == nil
end

return M