title: How to return multiple values from a function in Kotlin like we do in Swift?
body: <p>How to return 3 separate data values of the same type (<code>Int</code>) from a function in Kotlin?</p>
  <p>I'm attempting to return the time of day, I need to return the Hour, Minute and Second as separate integers, but all in one go from the same function, is this possible?</p>
  <p>In swift we do it like following,</p>
  <pre><code>func getTime() -&gt; (Int, Int, Int) {
      ...
      return ( hour, minute, second)
  }
  </code></pre>
  <p>can we achieve this in Kotlin?</p>
  <p>P.S: I know I can use Array or Hashmap for this but I want to know if there exists something in Kotlin like it is in Swift.</p>