view core/src/luan/modules/Table.luan @ 759:ae612dfc57cb 0.21

better handling of longs in rpc and json
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Jul 2016 09:09:41 -0600
parents ca169567ce07
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