removed unnecessary import jet.Iterator

This commit is contained in:
Svetlana Isakova
2012-08-29 15:10:57 +04:00
parent 726bcb5465
commit a3194e9a46
29 changed files with 0 additions and 29 deletions
@@ -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())
@@ -2,7 +2,6 @@ package foo
import java.util.*
import java.lang.*
import jet.Iterator
public inline fun <T, C: Collection<in T>> Iterator<T>.takeWhileTo(result: C, predicate: (T) -> Boolean) : C {
for (element in this) if (predicate(element)) result.add(element) else break
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun <in T> Array<T>.toSortedSet() : SortedSet<T> = toCollection(TreeSet<T>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun BooleanArray.toSortedSet() : SortedSet<Boolean> = toCollection(TreeSet<Boolean>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun ByteArray.toSortedSet() : SortedSet<Byte> = toCollection(TreeSet<Byte>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun CharArray.toSortedSet() : SortedSet<Char> = toCollection(TreeSet<Char>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun DoubleArray.toSortedSet() : SortedSet<Double> = toCollection(TreeSet<Double>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun FloatArray.toSortedSet() : SortedSet<Float> = toCollection(TreeSet<Float>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun IntArray.toSortedSet() : SortedSet<Int> = toCollection(TreeSet<Int>())
@@ -9,7 +9,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -9,7 +9,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun <in T> Iterator<T>.toSortedSet() : SortedSet<T> = toCollection(TreeSet<T>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun LongArray.toSortedSet() : SortedSet<Long> = toCollection(TreeSet<Long>())
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -10,7 +10,6 @@ package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun ShortArray.toSortedSet() : SortedSet<Short> = toCollection(TreeSet<Short>())
@@ -1,7 +1,6 @@
package kotlin
import java.util.*
import jet.Iterator
/**
* Returns *true* if all elements match the given *predicate*
@@ -1,7 +1,6 @@
package kotlin
import java.util.*
import jet.Iterator
/** Copies all elements into a [[SortedSet]] */
public inline fun <in T> Iterable<T>.toSortedSet() : SortedSet<T> = toCollection(TreeSet<T>())
@@ -1,7 +1,6 @@
package kotlin.concurrent
import java.util.concurrent.Executor
import jet.Iterator
class FunctionalQueue<T> (
val input: FunctionalList<T> = FunctionalList.emptyList<T>(),
-1
View File
@@ -4,7 +4,6 @@ import kotlin.*
import kotlin.support.*
import java.util.*
import org.w3c.dom.*
import jet.Iterator
// TODO should not need this - its here for the JS stuff
import java.lang.IllegalArgumentException
@@ -8,7 +8,6 @@ import java.io.InputStream
import java.io.StringWriter
import java.io.Writer
import java.util.*
import jet.Iterator
import javax.xml.parsers.DocumentBuilder
import javax.xml.parsers.DocumentBuilderFactory
import javax.xml.transform.OutputKeys
-1
View File
@@ -3,7 +3,6 @@ package test.collections
import kotlin.test.*
import java.util.*
import jet.Iterator
import org.junit.Test as test