Initial support for "+=", filterTo and mapTo for collections

This commit is contained in:
Valentin Kipyatkov
2016-04-06 15:40:33 +03:00
parent ac46684592
commit 22fb397662
13 changed files with 177 additions and 19 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo(list: List<String>, target: MutableList<Int>) {
<caret>list
.filter { it.length > 0 }
.mapTo(target) { it.hashCode() }
}