Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call L with multiple argumens. #32

Open
moteus opened this issue Aug 28, 2013 · 1 comment
Open

call L with multiple argumens. #32

moteus opened this issue Aug 28, 2013 · 1 comment

Comments

@moteus
Copy link

moteus commented Aug 28, 2013

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
Copy link
Author

moteus commented Oct 18, 2013

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant