mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
Fix func.curry_tail
This commit is contained in:
parent
bc6cd004ae
commit
4e350213a8
2
func.lua
2
func.lua
@ -7,7 +7,7 @@ end
|
|||||||
|
|
||||||
function curry_tail(func, ...)
|
function curry_tail(func, ...)
|
||||||
local args = { ... }
|
local args = { ... }
|
||||||
return function(...) return func(..., unpack(args)) end
|
return function(...) return func(unpack(modlib.table.concat({...}, args))) end
|
||||||
end
|
end
|
||||||
|
|
||||||
function call(...)
|
function call(...)
|
||||||
|
Loading…
Reference in New Issue
Block a user