diff src/luan/modules/TableLuan.java @ 1100:ad6b3b9fef40

add Table.is_empty() and Table.size()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 21 May 2017 16:12:22 -0600
parents 2443152dc2f1
children 7ef40e1923b7
line wrap: on
line diff
--- a/src/luan/modules/TableLuan.java	Wed Apr 05 16:24:02 2017 -0600
+++ b/src/luan/modules/TableLuan.java	Sun May 21 16:12:22 2017 -0600
@@ -116,4 +116,12 @@
 		return tbl.hashValue();
 	}
 
+	public static boolean is_empty(LuanTable tbl) throws LuanException {
+		return tbl.rawIsEmpty();
+	}
+
+	public static int size(LuanTable tbl) throws LuanException {
+		return tbl.rawSize();
+	}
+
 }