view core/src/luan/modules/Table.luan @ 574:6cc2f047019b

remove LuanState.call()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 13 Jul 2015 12:31:53 -0600
parents 22bfd8a2eaee
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