JS lib: added hasNext to Kotlin.ListIterator and fixed next.

#KT-6506 Fixed

Additionally made abstract AbstractList::get and AbstractCollection::size.
This commit is contained in:
Zalim Bashorov
2014-12-29 14:28:41 +03:00
parent 480f990c1d
commit 7668f44655
4 changed files with 75 additions and 5 deletions
+4 -1
View File
@@ -276,8 +276,11 @@
this.size = list.size();
this.index = 0;
}, {
hasNext: function () {
return this.index < this.size;
},
next: function () {
return this.list.get(this.index++);
return this.list.get_za3lpa$(this.index++);
}
});