✓
Passing This code compiles and runs correctly.
Code
// stripe(store) is a MOMENTARY verb: legal inside an inlined effect-branch
// body (the per-frame firing point — koru-libs raylib bounce.k). The rule
// fires once at its root position, once from the in-body stripe.
import std/io
import std/store
std/store:new(game) { hp: i64 }
std/store:insert(game) { hp: 3 }
| row _ |> _
| full |> _
[name(report)]std/store:query(game)
! query { entity.hp } |> std/io:print.ln("hp {{ hp:d }}")
pub event beat { x: i64 }
! tick i64
beat = tick(x)
beat(x: 2)
! tick t |> std/store:stripe(game)
Actual
hp 3
hp 3
Expected output
hp 3
hp 3
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: game, source: hp: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: game, source: hp: 3)
flow ~query click a branch to expand · @labels scroll to their anchor
query (expr: game)
subflow ~beat click a branch to expand · @labels scroll to their anchor
tick (x)
flow ~beat click a branch to expand · @labels scroll to their anchor
beat (x: 2)
Test Configuration
MUST_RUN