shithub: mc

ref: f3109e1faf8de6f98c308aabba79e8db0c0876dd
dir: /lib/iter/test/reverse.myr/

View raw version
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++
	;;

}