removed check for 'hasNext' val in frontend

This commit is contained in:
Svetlana Isakova
2012-08-20 16:05:16 +04:00
parent f72fb51a55
commit f817eba7aa
8 changed files with 8 additions and 37 deletions
@@ -1,6 +1,7 @@
fun <T : Any> T?.iterator() = object {
var hasNext = this@iterator != null
private set
fun hasNext() = hasNext
fun next() : T {
if (hasNext) {