comparison core/src/luan/modules/TableLuan.java @ 425:0a2fb80907f9

minor LuanTable cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 May 2015 17:18:23 -0600
parents ce8e19567911
children 23a93c118042
comparison
equal deleted inserted replaced
424:750a68eceb1d 425:0a2fb80907f9
110 public static LuanTable sub_list(LuanTable list,int from,int to) { 110 public static LuanTable sub_list(LuanTable list,int from,int to) {
111 return list.subList(from,to); 111 return list.subList(from,to);
112 } 112 }
113 113
114 public static LuanTable clone(LuanTable tbl) { 114 public static LuanTable clone(LuanTable tbl) {
115 return tbl.cloneTable(); 115 return new LuanTable(tbl);
116 } 116 }
117 117
118 public static LuanTable new_property_table() { 118 public static LuanTable new_property_table() {
119 return LuanPropertyMeta.INSTANCE.newTable(); 119 return LuanPropertyMeta.INSTANCE.newTable();
120 } 120 }