✓
Passing This code compiles and runs correctly.
Code
// Indexed field READ in a stored RHS: `todos[ui.sel].done` must lower to the
// SoA column (`__koru_store_todos.done[…]`), not a bare Zig `todos[…]`.
// todo_tui space-toggle: `done: 1 - todos[ui.sel].done`.
import std/io
import std/store
std/store:new(todos, capacity: 8) { done: i64 }
std/store:new(ui) { sel: 0[i64] }
std/store:insert(todos) { done: 0 }
| row _ |> std/store:stored { todos[ui.sel].done: 1 - todos[ui.sel].done }
std/store:query(todos)
! query { entity.done } |> std/io:print.ln("done {{ done:d }}")
Actual
done 1
Expected output
done 1
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: todos, capacity: 8, source: done: i64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: ui, source: sel: 0[i64])
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: todos, source: done: 0)
flow ~query click a branch to expand · @labels scroll to their anchor
query (expr: todos)
Test Configuration
MUST_RUN