Created
August 4, 2018 07:52
-
-
Save YugandharVadlamudi/628a7be5c4694f3807396fc60088179c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
// Pair Example with infix notation | |
var pairExample = 1 to 3 | |
println("${pairExample.second}") | |
// pair with object notation | |
var pairExampleObj = Pair(3, 4) | |
println("the value be ${pairExampleObj.first}") | |
} | |
###Output### | |
3 | |
the value be 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment