title: Lua / Initialize table with inline function code but assign value not function
body: <p>I have this Lua code to initialize a table:</p>
  
  <pre><code>table = {
    a = 1;
    b = myfunc();
    c = function () &lt;some code&gt; end;
  }
  </code></pre>
  
  <p>After this table.c has type function and I have to use <code>table.c()</code>
  in a print statement with the .. operator to get the result. But I would like to just use <code>table.c</code> instead.</p>
  
  <p>Is there a way that I can get the return value of the function assigned to table.c so the type is not function without having to define a function outside of the table?</p>