051 store capacity selects shape

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

item 1
item 2
count 1

Expected output

item 1
item 2
count 1

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: items, capacity: 8, source: n: i64)
flow ~query click a branch to expand · @labels scroll to their anchor
query (expr: items)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: tally, source: count: 0[i64])
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (expr: tally)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: items, source: n: 1)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: items, source: n: 2)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: tally.count: tally.count + 1)

Test Configuration

MUST_RUN