Mercurial Hosting > luan
comparison src/luan/modules/Table.luan @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | core/src/luan/modules/Table.luan@ca169567ce07 |
children | 6b8ea0a9b7c9 |
comparison
equal
deleted
inserted
replaced
774:3e30cf310e56 | 775:1a68fc55a80c |
---|---|
1 java() | |
2 local TableLuan = require "java:luan.modules.TableLuan" | |
3 | |
4 local M = {} | |
5 | |
6 M.clear = TableLuan.clear | |
7 M.concat = TableLuan.concat | |
8 M.copy = TableLuan.copy | |
9 M.insert = TableLuan.insert | |
10 M.new_property_table = TableLuan.new_property_table | |
11 M.pack = TableLuan.pack | |
12 M.remove = TableLuan.remove | |
13 M.sort = TableLuan.sort | |
14 M.unpack = TableLuan.unpack | |
15 | |
16 | |
17 local Luan = require "luan:Luan.luan" | |
18 local pairs = Luan.pairs | |
19 | |
20 function M.is_empty(t) | |
21 return pairs(t)() == nil | |
22 end | |
23 | |
24 return M |