shithub: mc

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

View raw version
use std
use iter

const main = {
	var n

	n = 0
	for (a, b) : iter.byzip([0,2,4,6,8][:], [2,4][:])
		std.assert(a == n*2, "invalid val from a: {}", a)
		std.assert(b == n*2 + 2, "invalid val from b: {}", b)
		n++
	;;
}