Mercurial Hosting > luan
view src/luan/modules/Table.luan @ 1088:bae2d0c2576c
change module naming convention
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Dec 2016 22:29:36 -0700 |
parents | 6b8ea0a9b7c9 |
children | 2443152dc2f1 |
line wrap: on
line source
java() local TableLuan = require "java:luan.modules.TableLuan" local Table = {} Table.clear = TableLuan.clear Table.concat = TableLuan.concat Table.copy = TableLuan.copy Table.insert = TableLuan.insert Table.pack = TableLuan.pack Table.remove = TableLuan.remove Table.sort = TableLuan.sort Table.unpack = TableLuan.unpack local Luan = require "luan:Luan.luan" local pairs = Luan.pairs function Table.is_empty(t) return pairs(t)() == nil end return Table