This talk was presented in BlrKotlin's meetup on 22nd Feb, 2020. This talk gives an idea of how powerful Kotlin's Operator Overloading feature is and how best we can use it to do our job.
IntArray.plus(value: Int): IntArray { val resultArr = IntArray(size) forEachIndexed { index, i -> resultArr[index] = i + value } return resultArr } Operator Function
IntArray.times(value: Int): IntArray { val resultArr = IntArray(size) forEachIndexed { index, i -> resultArr[index] = i * value } return resultArr } Operator Function