blob: 4ca2079a094664d16e728496aa7fadc4c868ca98 [file] [log] [blame]
//FILE: test.kt
fun box() {
if (listOf(1, 2, 3).myAny { it > 2 }) {
println("foo")
}
}
public inline fun <T> Iterable<T>.myAny(predicate: (T) -> Boolean): Boolean {
for (element in this) {
if (predicate(element)) return true
}
return false
}
// 3 LINENUMBER 5