package kotlin public inline val Char.code: Int get() = this.toInt() expect fun Double.isNaN(): Boolean expect fun Float.isNaN(): Boolean public data class Pair(public val first: A, public val second: B) : java.io.Serializable { public override fun toString(): String = "($first, $second)" } public infix fun A.to(that: B): Pair = Pair(this, that) public fun Pair.toList(): List = listOf(first, second) public data class Triple( public val first: A, public val second: B, public val third: C ) : java.io.Serializable { public override fun toString(): String = "($first, $second, $third)" } public fun Triple.toList(): List = listOf(first, second, third) public fun checkIndexOverflow(index: Int): Int { if (index < 0) { throw kotlin.ArithmeticException("Index overflow has happened.") } return index }