ref: ef16012a85da92aa8e7fdb7890e2f7a88364c9bd
dir: /lib/std/test/iterutil.myr/
use std const main = { var n n = 0 for (x, i) in std.byenum([0,2,4,6,8][:]) std.assert(x == n, "invalid enum idx {}", x) std.assert(i == n*2, "invalid enum val {}", i) n++ ;; n = 0 for (a, b) in std.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++ ;; }