extending <@U0D06TWMA> code: ``` operator fun Num...
# getting-started
h
extending @Andreas Sinz code:
Copy code
operator fun Number.compareTo(other: Number): Int {
    return when {
        this is Int && other is Int   -> this.compareTo(other)
        this is Long && other is Long -> this.compareTo(other)
        else                          -> 0
    }
}