title: Why is an array of lambdas created instead of an array of strings?
body: <p>When I create an array like that, I get the output which I would expect:</p>
  <pre><code>val array1 = Array(26) { i -&gt; ('a' + i).toString() }
  println(array1.joinToString(&quot; &quot;))
  </code></pre>
  <blockquote>
  <p>a b c d e f g h i j k l m n o p q r s t u v w x y z</p>
  </blockquote>
  <p>But when I add additonal <code>{}</code> around the code it returns a lambda which is not expected:</p>
  <pre><code>val array2 = Array(26) { i-&gt; { ('a' + i).toString() } }
  println(array2.joinToString(&quot; &quot;))
  </code></pre>
  <p>Output:</p>
  <blockquote>
  <p>() -&gt; kotlin.String () -&gt; kotlin.String () -&gt; kotlin.String () -&gt; kotlin.String () -&gt; kotlin.String...</p>
  </blockquote>
  <p>What is the problem?</p>