What is the meaning of "..."?

asdasd


i can’t understand the meaning of it :frowning:

I am fairly certain it means all other arguments. for example:

function hello(...)
    print(...)
end

hello(3,"bye", 8)

It will just print whatever argument you pass

Edit:
You can also do something like this. Thought i might mention it:

function hello(arg1, arg2, ...)
   print(...)
end

hello(3,"bye", 8)

Now that example will only print 8 because first arg and second arg are set to 3 and bye

2 Likes

“…” is referred as “arguments”. it is used to determine all the possible arguments of something.

5 Likes