My reason for it was being able to create function...
# announcements
d
My reason for it was being able to create functions like this
Copy code
fun <T : Number, C : Number, K : Number> List<T>.add(other: List<C>): List<K> =
        if (size != other.size) throw IllegalStateException("the size of both lists should be equal.")
        else mapIndexed { index: Int, value: T -> value.plus<C, K>(other[index]) }
But even with the abstract fuctions it wouldn't work 😞 my bad