Mercurial Hosting > luan
view src/luan/modules/Table.luan @ 1095:2443152dc2f1
add Luan.hash_code() and Table.hash_value()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Feb 2017 20:27:17 -0700 |
parents | bae2d0c2576c |
children | ad6b3b9fef40 |
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.hash_value = TableLuan.hash_value 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