I’m pretty sure a lot of us are aware about how strings have methods. For instance:
string.split(str," ") --> The "natural" way of splitting.
str:split(" ") --> The methodic way of splitting.
I went to a Communications Server in regards to ROBLOX Scripting and I asked if you could use methods for tables and they unfortunately said no. If you don’t know what I’m talking about, I’ll show an example of what I was talking about below.
local tbl = {
"Hi!",
"My",
"name",
"is",
"R3KEA!"
}
table.concat(tbl," ") --> Correct way.
tbl:concat(" ") --> Non-existent way.
I made a whole “documentation” on how Roblox could implement this. But can anyone tell me if there would be any errors with this.
tbl:concat(" ")
tbl:foreach(functionVar)
tbl:foreachi(functionVar)
tbl:getn()
tbl:insert(1,"Kewl")
tbl:remove(2)
tbl:sort(functionComp)
tbl:pack() --> Variant values
tbl:unpack()
table.create() --> Wouldn't work in this case
tbl:clear()
tbl:find(needle,init)
I apologize if this was a bit messy.