Skip to content

Commit e702d29

Browse files
Fix last error
1 parent 832d0e9 commit e702d29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/KotlinFunctionLibrary.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ println(x in z) //prints true
10501050
*/
10511051
operator fun <T> List<Iterable<T>>.contains(other: List<Iterable<T>>): Boolean = contains(other) { thisList, otherList -> thisList.any { it in otherList } }
10521052

1053-
inline fun <T> List<T>.contains(other: List<T>, predicate: (thisElement: T, otherElement: T) -> Boolean): Boolean = indexOf(other, 0, this.size, predicate) >= 0
1053+
fun <T> List<T>.contains(other: List<T>, predicate: (thisElement: T, otherElement: T) -> Boolean): Boolean = indexOf(other, 0, this.size, predicate) >= 0
10541054

10551055
fun <T> List<T>.indexOf(other: List<T>, startIndex: Int, endIndex: Int, predicate: (thisElement: T, otherElement: T) -> Boolean): Int {
10561056

0 commit comments

Comments
 (0)