3 ms·
Kotlin allows you to overload the += for your own classes. You just create a function called plusAssign such that a += b translates to a.plusAssign(b) https:/
by aembleton 11y ago
Kotlin allows you to overload the += for your own classes. You just create a function called plusAssign such that a += b translates to a.plusAssign(b)
https://kotlinlang.org/docs/reference/operator-overloading.html https://kotlinlang.org/docs/reference/operator-overloading.h...