darktilrisen
08/19/2017, 7:48 PMfun <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