package utils;
class ArrayKeyValueReverseIterator<T> {
final arr:Array<T>;
var i:Int;
public inline function new(arr:Array<T>) {
this.arr = arr;
this.i = this.arr.length - 1;
}
public inline function hasNext() {
return i > -1;
}
public inline function next() {
return {value: arr[i], key: i--};
}
}
send patches to the email below yukais@pinapelz.com
include the subject [PATCH repo_name]