changed js tests/library after collections mapping

This commit is contained in:
Svetlana Isakova
2012-09-05 12:36:52 +04:00
parent 8bbb61a98c
commit e622be8a2d
7 changed files with 10 additions and 14 deletions
@@ -3,7 +3,7 @@ package foo
import java.util.*
import java.lang.*
public inline fun <T, C: Collection<in T>> Iterator<T>.takeWhileTo(result: C, predicate: (T) -> Boolean) : C {
public inline fun <T, C: MutableCollection<in T>> Iterator<T>.takeWhileTo(result: C, predicate: (T) -> Boolean) : C {
for (element in this) if (predicate(element)) result.add(element) else break
return result
}