comparison core/src/luan/modules/Table.luan @ 693:ca169567ce07

module URIs must now include ".luan"
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Apr 2016 15:54:11 -0600
parents 1e69d9c21461
children
comparison
equal deleted inserted replaced
692:7bd97d642f37 693:ca169567ce07
12 M.remove = TableLuan.remove 12 M.remove = TableLuan.remove
13 M.sort = TableLuan.sort 13 M.sort = TableLuan.sort
14 M.unpack = TableLuan.unpack 14 M.unpack = TableLuan.unpack
15 15
16 16
17 local Luan = require "luan:Luan" 17 local Luan = require "luan:Luan.luan"
18 local pairs = Luan.pairs 18 local pairs = Luan.pairs
19 19
20 function M.is_empty(t) 20 function M.is_empty(t)
21 return pairs(t)() == nil 21 return pairs(t)() == nil
22 end 22 end