✓
Passing This code compiles and runs correctly.
Code
// MIRROR of 690_069_store_sweep_row_ordinal: `std/store:sweep` with the
// reserved `row` ordinal, relocated into an imported module.
//
// sweep is the render-bridge shape — a layout cursor over a module's own rows.
// One exported tor per seeding insert because the original writes three
// sequential top-level statements and a subflow body is a single flow; chaining
// inserts with `|>` is a form the corpus never writes, so it is not invented
// here.
import app/lib
app/lib:seed-a() |> app/lib:seed-b() |> app/lib:seed-c() |> app/lib:draw()
Supporting Files
import std/io
import std/store
std/store:new(items, capacity: 8) { v: i64 }
pub tor seed-a {}
seed-a = std/store:insert(items) { v: 10 }
pub tor seed-b {}
seed-b = std/store:insert(items) { v: 20 }
pub tor seed-c {}
seed-c = std/store:insert(items) { v: 30 }
pub tor draw {}
draw = for(0..1)
! each _ |> std/store:query(items)
! query { [row]e, [ordinal]n } |> std/io:print.ln("row {{ n:d }} = {{ e.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 ~seed-a click a branch to expand · @labels scroll to their anchor
seed-a
Test Configuration
MUST_RUN