Skip to content

Instantly share code, notes, and snippets.

@YugandharVadlamudi
Created August 4, 2018 07:52
Show Gist options
  • Save YugandharVadlamudi/628a7be5c4694f3807396fc60088179c to your computer and use it in GitHub Desktop.
Save YugandharVadlamudi/628a7be5c4694f3807396fc60088179c to your computer and use it in GitHub Desktop.
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