title: Returning the index of a value in a Lua table
body: <p>I have this table in lua:</p>
  
  <pre><code>local values={"a", "b", "c"}
  </code></pre>
  
  <p>is there a way to return the index of the table if a variable equals one the table entries?
  say </p>
  
  <pre><code>local onevalue = "a"
  </code></pre>
  
  <p>how can I get the index of "a" or onevalue in the table without iterating all values?</p>