title: Use a table's content as a key
body: <p>Is there an easy way to create a dictionary-like collection, i.e.</p>
  
  <ol>
  <li>Tables can be used as keys</li>
  <li>Tables with the same content are considered equivalent (instead of the default pointer comparison)</li>
  </ol>
  
  <p>e.g. after</p>
  
  <pre><code>t = createCustomTable()
  k1 = {'a','b','c'}
  k2 = {'a','b','c'}
  t[k1] = true
  </code></pre>
  
  <p><code>t[k2]</code> should evaluate to <code>true</code>.<br>
  Also <code>t</code> itself should be usable as a key in the same way.</p>
  
  <p>Is there any way to do this without</p>
  
  <ol>
  <li>Re-implementing hash tables</li>
  <li>Converting <code>k1</code> and <code>k2</code> to strings? (this is what I am currently doing.)</li>
  </ol>