title: Evaluate code block in a function parameter in lua
body: <p>I wasn't really sure how to title the question, but consider the following lua code:</p>
  
  <pre><code>print(function ()
      s = ""
      for i = 1, 10 do
        s = s..tostring(i)
      end
      return s
    end)
  </code></pre>
  
  <p>But this prints only the function address, since function() returns a closure. Is there a way to evaluate the anonymous function? Like in scheme where I can embrace the lambda in additional brackets?</p>
  
  <pre><code>((lambda ()(display "Hello World")))
  </code></pre>
  
  <p>Of course I know, I could define the function beforehand and call it later, but I was just curious if this is possible in lua. Thanks in advance for all replys.</p>