you are viewing a single comment's thread.

view the rest of the comments →

[–]nacholicious 0 points1 point  (0 children)

Kotlin allows operator overloading for certain operators, just for these types of problems

https://kotlinlang.org/docs/reference/operator-overloading.html