Infix functions

class Pair<A, B>( val first: A val second: B) 


infix fun <A, B> A.to(that: B) : Pair<A, B> = Pair(this, that)


val pair: Pair<String, String> = "" to ""
Back Home Next