ref: 41046c6382017e0297f8e07a7493c2cd779b8f0b dir: /lib/iter/test/reverse.myr/
use std use iter const main = { var n n = 0 for x : iter.byreverse([3, 2, 1, 0][:]) std.assert(x == n, "invalid reversed value {}, expected {}", x, n) n++ ;; }