title: How do i elegantly reference return values in multiple-return-value-functions in Lua?
body: <p>say i have a function:</p>
  
  <pre><code>function func()
      return 1, 2, 3
  end
  </code></pre>
  
  <p>Is there a way to elegantly reference individual return values? such as</p>
  
  <pre><code>if func() == 1 then
    print("stuff")
  end
  </code></pre>
  
  <p>but instead reference the second or third returned value?</p>
  
  <p>i realize you can do this</p>
  
  <pre><code>if ({func()})[2] == 2 then ...
  </code></pre>
  
  <p>but it just looks awful, and might as well just </p>
  
  <pre><code>_,v = func()
  if v == 2 then ...
  </code></pre>
  
  <p>i'd like to do something like this</p>
  
  <pre><code>if func() == _,2 then ...
  </code></pre>