Drop min functions from addToStdlib.kt

This commit is contained in:
Dmitriy Novozhilov
2021-04-19 13:46:16 +03:00
committed by TeamCityServer
parent d114913cd2
commit e5b7cf23d6
5 changed files with 6 additions and 13 deletions
@@ -144,9 +144,6 @@ inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.flatMapToNullable(des
return destination
}
fun <E : Enum<E>> min(a: E, b: E): E = if (a < b) a else b
fun <E : Comparable<E>> min(a: E, b: E): E = if (a < b) a else b
inline fun <T, R> Iterable<T>.same(extractor: (T) -> R): Boolean {
val iterator = iterator()
val firstValue = extractor(iterator.next())