title: Default parameters in lambda expression in Kotlin
body: <p>I want to create a lambda and assign it to a variable and the following works as expected: </p>
  
  <pre><code>val rollDice = { min: Int, max: Int -&gt; (min..max).random() }
  </code></pre>
  
  <p>However, when I tried to assign default values to the parameters I got an error:</p>
  
  <pre><code>val rollDice = { min: Int = 1, max: Int = 12 -&gt; (min..max).random() }
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
  Unexpected tokens (use ';' to separate expressions on the same line)
  </code></pre>
  
  <p>Is it not possible to assign default values to parameters in lambda expressions in Kotlin?</p>