✓
Passing This code compiles and runs correctly.
Code
// std/store:sweep with the reserved `row` ordinal — the layout cursor a
// retained renderer needs. A bare `row` in the projection (no `entity.` path)
// binds the 0-based row index; opt-in, so it's only present when the body uses
// it (KORU100-safe). `! draw |> sweep(store) ! sweep { entity.f, row } |>
// write-at(y: row, …)` is the render-bridge shape. Nested (the render-bridge
// position); top-level sweep is a separate follow-up (inline_code placement).
import std/io
import std/store
std/store:new(items, capacity: 8) { v: i64 }
std/store:insert(items) { v: 10 }
std/store:insert(items) { v: 20 }
std/store:insert(items) { v: 30 }
for(0..1)
! each _ |> std/store:sweep(items)
! sweep { entity.v, row } |> std/io:print.ln("row {{ row:d }} = {{ v:d }}")
Actual
row 0 = 10
row 1 = 20
row 2 = 30
Expected output
row 0 = 10
row 1 = 20
row 2 = 30
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: items, capacity: 8, source: v: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: items, source: v: 10)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: items, source: v: 20)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: items, source: v: 30)
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..1)
Test Configuration
MUST_RUN