takeWhile supported
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with '+= flatMap{}.takeWhile{}'"
|
||||
fun foo(list: List<String>, target: MutableCollection<Int>) {
|
||||
Outer@
|
||||
<caret>for (s in list) {
|
||||
for (i in s.indices) {
|
||||
if (i > 1000) break@Outer
|
||||
target.add(i)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user