227 zip delivers pairs lockstep

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

1+10
2+11
3+12
pairs: 3
1/10
3/30
pairs2: 2

Expected output

1+10
2+11
3+12
pairs: 3
1/10
3/30
pairs2: 2

Flows

flow ~zip click a branch to expand · @labels scroll to their anchor
zip (a: 1..4, b: 10..14)
flow ~zip click a branch to expand · @labels scroll to their anchor
zip (a: &[_]i64{ 1, 2, 3 }, b: &[_]i64{ 10, 20, 30, 40 }, step: 2)

Test Configuration

MUST_RUN