I\'d like to understand Kotlin extension functions more and am trying to implement an extension function for a List, to get the index of an element by passing the value of t