comparison 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
comparison
equal deleted inserted replaced
1099:a5406f076726 1100:ad6b3b9fef40
114 114
115 public static int hash_value(LuanTable tbl) throws LuanException { 115 public static int hash_value(LuanTable tbl) throws LuanException {
116 return tbl.hashValue(); 116 return tbl.hashValue();
117 } 117 }
118 118
119 public static boolean is_empty(LuanTable tbl) throws LuanException {
120 return tbl.rawIsEmpty();
121 }
122
123 public static int size(LuanTable tbl) throws LuanException {
124 return tbl.rawSize();
125 }
126
119 } 127 }