342 indexed store bulk maintains index

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

first 0
4
g0 0
g0 3
g0 6
g0 9
g0 10
g0 12
g0 14
g1 1
g1 4
g1 7
g1 11
g1 13
g1 15
g2 2
g2 5
g2 8

Expected output

✓ Zig✓ JavaScript
first 0
4
g0 0
g0 3
g0 6
g0 9
g0 10
g0 12
g0 14
g1 1
g1 4
g1 7
g1 11
g1 13
g1 15
g2 2
g2 5
g2 8

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (players, capacity: 8, source: key: i64, val: i64)
flow ~store click a branch to expand · @labels scroll to their anchor
store (expr: players, key, source: <implicit_source>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (acc, source: n: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (out, source: v: 0[i64])
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (out)
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..4)
flow ~query click a branch to expand · @labels scroll to their anchor
query (players)
flow ~query click a branch to expand · @labels scroll to their anchor
query (players)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: out.v: acc.n)
flow ~new click a branch to expand · @labels scroll to their anchor
new (tags, capacity: 16, source: grp: i32, val: i32)
flow ~store click a branch to expand · @labels scroll to their anchor
store (expr: tags, grp, source: <implicit_source>)
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..10)
flow ~for click a branch to expand · @labels scroll to their anchor
for (10..16)
flow ~query click a branch to expand · @labels scroll to their anchor
query (tags)
flow ~query click a branch to expand · @labels scroll to their anchor
query (tags)
flow ~query click a branch to expand · @labels scroll to their anchor
query (tags)

Test Configuration

MUST_RUN LANGUAGES: zig js

Post-validation Script: