modlib/func.lua

6 lines
124 B
Lua
Raw Normal View History

2020-03-23 20:20:43 +01:00
function curry(func, ...)
local args = {...}
return function(...)
return func(unpack(args), ...)
end
end