comparison util/multitable.lua @ 568:b2464849c1b0

Small fix for multitable
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Dec 2008 03:40:51 +0000
parents 9a695724681d
children 4ae3e81513f3
comparison
equal deleted inserted replaced
567:ae7f6167d780 568:b2464849c1b0
42 local key = select(n, ...); 42 local key = select(n, ...);
43 local tab = t[key]; 43 local tab = t[key];
44 if not tab then tab = {}; t[key] = tab; end 44 if not tab then tab = {}; t[key] = tab; end
45 t = tab; 45 t = tab;
46 end 46 end
47 t_insert(t, select(count, ...)); 47 t_insert(t, (select(count, ...)));
48 end 48 end
49 49
50 local function r(t, n, _end, ...) 50 local function r(t, n, _end, ...)
51 if t == nil then return; end 51 if t == nil then return; end
52 if n > _end then 52 if n > _end then