013 a for loop is a link of a grid write chain

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

head 1,3 same 13 arm 2,6

Expected output

✓ Zig✓ JavaScript
head 1,3 same 13 arm 2,6

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: g, size: 4, source: n: 0[i64], sum: 0[i64])
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: g[0].n: g[0].n + 1)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: g[2].sum: 10)
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..2)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "head {{ g[0].n:d }},{{ g[1].sum:d }} same {{ g[2].sum:d }} arm {{ g[3].n:d }},{{ g[3].sum:d }}")

Test Configuration

MUST_RUN