modlib/func.lua
Lars Mueller 892a27deef rolling-9
2020-03-23 20:20:43 +01:00

6 lines
124 B
Lua

function curry(func, ...)
local args = {...}
return function(...)
return func(unpack(args), ...)
end
end