title: lua - table.concat with string keys
body: <p>I'm having a problem with lua's table.concat, and suspect it is just my ignorance, but cannot find a verbose answer to why I'm getting this behavior.</p>
  
  <pre><code>&gt; t1 = {"foo", "bar", "nod"}
  &gt; t2 = {["foo"]="one", ["bar"]="two", ["nod"]="yes"}
  &gt; table.concat(t1)
  foobarnod
  &gt; table.concat(t2)
  </code></pre>
  
  <p>The table.concat run on t2 provides no results. I suspect this is because the keys are strings instead of integers (index values), but I'm not sure why that matters. </p>
  
  <p>I'm looking for A) why table.concat doesn't accept string keys, and/or B) a workaround that would allow me to concatenate a variable number of table values in a handful of lines, without specifying the key names.</p>