diff core/src/luan/modules/Table.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 55f9f74f1e55
children 22bfd8a2eaee
line wrap: on
line diff
--- a/core/src/luan/modules/Table.luan	Tue May 19 17:57:20 2015 -0600
+++ b/core/src/luan/modules/Table.luan	Wed May 20 23:24:46 2015 -0600
@@ -1,20 +1,24 @@
 java()
 local TableLuan = require "java:luan.modules.TableLuan"
 
-clone = TableLuan.clone
-concat = TableLuan.concat
-insert = TableLuan.insert
-new_property_table = TableLuan.new_property_table
-pack = TableLuan.pack
-remove = TableLuan.remove
-sort = TableLuan.sort
-sub_list = TableLuan.sub_list
-unpack = TableLuan.unpack
+local M = {}
+
+M.clone = TableLuan.clone
+M.concat = TableLuan.concat
+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.sub_list = TableLuan.sub_list
+M.unpack = TableLuan.unpack
 
 
 local Luan = require "luan:Luan"
 local pairs = Luan.pairs
 
-function is_empty(t)
+function M.is_empty(t)
 	return pairs(t)() == nil
 end
+
+return M