stevedonovan / Lake

A Lua-based Build Tool
MIT License
132 stars 16 forks source link

call `L` with multiple argumens. #32

Open moteus opened 11 years ago

moteus commented 11 years ago

Now L("a","b","c") produce {"a"} I fix this like:

local function LL_impl(...)
    local res = {}
    for i = 1, select('#', ...) do
        local arg = select(i, ...)
        res[i] = L_impl(arg)
    end
    return L_impl(res)
end

L = LL_impl
moteus commented 10 years ago

ping