filter input change, some bugfixes

This commit is contained in:
Manuel Simon Hirsig
2016-08-15 22:58:16 +02:00
parent 37ec4953e0
commit 3d341f0041
3 changed files with 70 additions and 66 deletions
+8 -2
View File
@@ -1,7 +1,13 @@
local m, public, private = aux.module'util'
function public.present(value)
return value ~= nil and {[value]=true} or {}
function public.present(...)
local called
return function()
if not called then
called = true
return unpack(arg)
end
end
end
function public.unpack(array, ...)