better import jet namespace

This commit is contained in:
Stepan Koltsov
2012-03-19 23:25:27 +04:00
parent e986fb072c
commit e2cb98df67
20 changed files with 41 additions and 21 deletions
@@ -3,6 +3,7 @@
// KT-441 Exception in type inference when multiple overloads accepting an integer literal are accessible
import java.util.*
import jet.Iterator
fun <T> Iterator<T>.foreach(operation: (element: T) -> Unit) : Unit = while(hasNext) operation(next())
@@ -3,6 +3,7 @@
package kotlin.util
import java.util.*
import jet.Iterator
fun <T, U: Collection<in T>> Iterator<T>.to(container: U) : U {
while(hasNext)