https://kotlinlang.org logo
b

benleggiero

02/01/2017, 8:44 PM
Like, I wish I could do this:
Copy code
extension Int : Comparable<Int> {
    public operator fun compareTo(other: Int): Int {
        return if (this == other) 0 else if (this < other) -1 else 1
    }
}