View Single Post
07/13/14, 06:58 PM   #31
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Probably the only thing I like about Lua's regular expressions is that they traded power for simplicity, so they're easy to learn. And the added benefit of learning things like this is you get better understanding of other people's code. I've had to learn myself, never used Lua and still don't like it as a language

Another shortcut:
Originally Posted by Xrystal View Post
Lua Code:
  1. for i = 3, 23 do           
  2.             newLink = newLink..":"..linkData[i]
  3.         end
Lua Code:
  1. newLink = newLink .. table.concat(linkData, ":", 3, 23)
  Reply With Quote