Files
kotlin/plugins/scripting/scripting-compiler/testData/compiler/kt42530.kts

7 lines
176 B
Kotlin
Vendored

fun Int.isOdd() = (this % 2) == 1
val list: List<Pair<Int, String>> = listOf(1 to "a", 2 to "b")
val (odds, evens) = list.partition { (i, _) -> i.isOdd() }
println(odds)
odds