filter bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-08-11 19:14:17 +02:00
parent 4ee99e43e8
commit dba5dcdf8d
8 changed files with 55 additions and 68 deletions
+2 -6
View File
@@ -1,11 +1,7 @@
local m, public, private = aux.module'util'
function public.either(p, a, b)
if p then
return a
else
return b
end
function public.present(value)
return value ~= nil and {[value]=true} or {}
end
function public.unpack(array, ...)