Skip to content

return table from registry.add_method #391

Closed Answered by khvzak
brentp asked this question in Q&A

You must be logged in to vote

I would recommend createing a table with preallocated capacity to store N elements in array.
Also more efficient would be just using lua.create_sequence_from(v)

Replies: 2 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@khvzak

Answer selected by brentp
@brentp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants