Replace reverse with reversed or asReversed.
This commit is contained in:
@@ -68,7 +68,7 @@ public inline fun <reified T : Any> Iterable<*>.lastIsInstanceOrNull(): T? {
|
||||
}
|
||||
|
||||
else -> {
|
||||
return reverse().firstIsInstanceOrNull<T>()
|
||||
return reversed().firstIsInstanceOrNull<T>()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user