view core/src/luan/modules/Table.luan @ 580:1e69d9c21461

add Table.clear(); add Http.response.reset(); fix http/run;
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 21 Jul 2015 14:56:41 -0600
parents 22bfd8a2eaee
children ca169567ce07
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"
local pairs = Luan.pairs

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

return M