Merge remote-tracking branch 'origin/master'

This commit is contained in:
svtk
2011-12-20 20:54:43 +04:00
76 changed files with 1962 additions and 296 deletions
@@ -0,0 +1,14 @@
// KT-860 ConcurrentModificationException in frontend
// +JDK
namespace std.util
import java.util.*
fun <T, U: Collection<in T>> Iterator<T>.to(container: U) : U {
while(hasNext)
container.add(next())
return container
}
inline fun <T> Iterator<T>.toArrayList() = to(ArrayList<T>())