better import jet namespace
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user