title: Inserting Key Pairs into Lua table
body: <p>Just picking upon Lua and trying to figure out how to construct tables.
  I have done a search and found information on table.insert but all the examples I have found seem to assume I only want numeric indices while what I want to do is add key pairs.</p>
  
  <p>So, I wonder if this is valid?</p>
  
  <pre><code>    my_table = {}
      my_table.insert(key = "Table Key", val = "Table Value")
  </code></pre>
  
  <p>This would be done in a loop and I need to be able to access the contents later in:</p>
  
  <pre><code>    for k, v in pairs(my_table) do
          ...
      end
  </code></pre>
  
  <p>Thanks</p>