comparison src/luan/LuanTable.java @ 1730:b1b1f9a14928

fix Table.copy
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 Sep 2022 13:35:52 -0600
parents 8d257d56dc42
children 74f33278344f
comparison
equal deleted inserted replaced
1729:2be5f6c7bcd5 1730:b1b1f9a14928
418 }; 418 };
419 } 419 }
420 420
421 public LuanTable rawSubList(int from,int to) { 421 public LuanTable rawSubList(int from,int to) {
422 LuanTable tbl = new LuanTable(); 422 LuanTable tbl = new LuanTable();
423 tbl.list = new ArrayList<Object>(list().subList(from-1,to-1)); 423 tbl.list = new ArrayList<Object>(list().subList(from-1,to));
424 return tbl; 424 return tbl;
425 } 425 }
426 426
427 public LuanTable getMetatable() { 427 public LuanTable getMetatable() {
428 return metatable; 428 return metatable;