use kotlin Iterable/Iterator

instead of java Iterable/Iterator
in Kotlin code in library
This commit is contained in:
Svetlana Isakova
2012-08-14 15:24:13 +04:00
parent df93a26839
commit ca6d7e643e
19 changed files with 88 additions and 104 deletions
@@ -3,7 +3,7 @@ package regressions
import kotlin.test.assertEquals
import org.junit.Test as test
fun f(xs: java.util.Iterator<Int>): Int {
fun f(xs: Iterator<Int>): Int {
var answer = 0
for (x in xs) {
answer += x