title: Kotlin: how to make a function call using the first argument's default value and passing a value for the second?
body: <p>I'd like to know how to call a function with default arguments when you want to specify the value of the second argument. In the simple example below I am showing that the addTwo() takes two arguments. The 'first' argument has a default value but the 'second does not. How would I call this function specifying that I want to use the default value for 'first' with the given value of 2 for 'second'?</p>
  
  <p>Calling addTwo(2) throws an error. </p>
  
  <pre><code>fun main(args: Array&lt;String&gt;) {
      var sum = addTwo(1,2)    // works fine
      var nextSum = addTwo(2)  // ERROR: No value passed for parameter second 
  }
  
  fun addTwo(first: Int = 0, second: Int): Int {
      return first + second
  }
  </code></pre>