sum and sumBy supported

This commit is contained in:
Valentin Kipyatkov
2016-08-18 20:19:35 +03:00
parent 7c92f7974f
commit d0f6e25783
40 changed files with 682 additions and 6 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'sumBy{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var l = 0
<caret>for (item in list) {
l += item.length
}
return l
}