Hello!
Sorry if this has been asked before but I simply do not understand string.format. I’ve tried looking around and have seen people provide format codes and whatnot but I don’t understand how it works and why it is more efficient than :gsub or just creating my own function. It just looks like a bunch of gibberish to me when people throw around random strings, I just don’t get it.
Same thing with :match, why is it more efficient than using string.find?
I took a read at this but I still don’t get why it’s more efficient and more reliable than creating my own?