removed unnecessary import jet.Iterator
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
// 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,7 +3,6 @@
|
||||
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