✓
Passing This code compiles and runs correctly.
Code
import std/io
import std/store
std/store:new(ui) { n: 0[i64] }
std/store:new(batch, capacity: 2) { p: i64 }
! discharge |> std/io:print.ln("teardown")
seed = std/store:insert(batch) { p: 1 }
|> std/store:sweep(batch)
! sweep b |> std/store:stored { ui.n: ui.n + b.p }
main = seed()
Must contain:
`! discharge` applies only to a store with a column the store cannot discharge unattendedFlows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: ui, source: n: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: batch, capacity: 2, source: p: i64)
subflow ~seed click a branch to expand · @labels scroll to their anchor
insert (expr: batch, source: p: 1)
subflow ~main click a branch to expand · @labels scroll to their anchor
seed