I found an even more delightful solution that just uses the existing Iter.revRange() function with your Int.abs() suggestion. Teamwork makes the dream work ![]()
do {
let arr = [2,4,6,8,10];
for (i in Iter.revRange(arr.size(), 1)) {
Debug.print(debug_show(arr[Int.abs(i-1)]));
};
};
// Output
10
8
6
4
2