bugfix, filter display improvement

This commit is contained in:
Manuel Simon Hirsig
2016-08-09 04:09:11 +02:00
parent ab7d228afa
commit c19d73ba26
4 changed files with 37 additions and 12 deletions
+8 -1
View File
@@ -1,5 +1,9 @@
local m, public, private = aux.module'util'
function public.bound(lower_bound, upper_bound, number)
return max(lower_bound, min(upper_bound, number))
end
function public.size(t)
local x = 0
for _ in t do
@@ -33,7 +37,10 @@ function public.values(t)
end
function public.select(i, ...)
return arg[i]
for _=1,i-1 do
tremove(arg, 1)
end
return unpack(arg)
end
function public.eq(t1, t2)