💬

Community answer

Collected from the ACE community Discord archive around 2022-06-12. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

select(n, ...) vs ipairs({...}) for varargs

🌙 LuaUpdated 2 days ago•0 views
select(2, ...) returns everything after index n without building a table - cheaper than ipairs({...}) when you only need part of the varargs.

Is select every iteration faster than ipairs on a vararg table

select(2, ...) returns everything after index n without building a table - cheaper than ipairs({...}) when you only need part of the varargs.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.