Most of the time I see script having their functions in a =, like
local a = table.remove(self.stuff , 1)
But why do they have to assign it to local tail instead of just doing this
table.remove(self.stuff, 1)
???
Most of the time I see script having their functions in a =, like
local a = table.remove(self.stuff , 1)
But why do they have to assign it to local tail instead of just doing this
table.remove(self.stuff, 1)
???
Because sometimes you want to pop off values from a table and then use those values somewhere. If you just want to remove a value and do nothing with it you can ignore the function return.
Ok