Replace reverse with reversed or asReversed.

This commit is contained in:
Ilya Gorbunov
2015-10-01 19:07:55 +03:00
parent 37a0347669
commit b50c106648
17 changed files with 24 additions and 25 deletions
@@ -68,7 +68,7 @@ public inline fun <reified T : Any> Iterable<*>.lastIsInstanceOrNull(): T? {
}
else -> {
return reverse().firstIsInstanceOrNull<T>()
return reversed().firstIsInstanceOrNull<T>()
}
}
}