indexOfLastInstance

inline fun <T : Any> List<*>.indexOfLastInstance(): Int

Returns the index of the last occurrence of an declaration of type T in the list, or -1 if the list does not contain any declarations of that type.

Return

The index of the last occurrence of an declaration of type T in the list, or -1 if not found.