Remove assertion about dispatch receiver in scripts
#KT-42530 fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
|
||||
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() }
|
||||
odds
|
||||
Reference in New Issue
Block a user