This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Store.take
~import std/store.takeKoru Standard Library: Reactive Stores — the `take` event.
store.take.kz · 1 tors
Koru Standard Library: Reactive Stores — the `take` event.
Joined via `~part take` in store.kz; merged into the store module at load.
STORE.TAKE — extract a row with ownership through the handle head
std/store:take(game[r]) | item i |> …
Swap-remove (legal: position is never identity — O2/O10.iii). Compiles to
`__store_take_<s>(row: <handle>)`; the `| item {fields}` branch carries
the row out. Obligation wiring (a taken row must be consumed or given
back — 690_007/690_015) rides on the take event's phantom.
// Koru Standard Library: Reactive Stores — the `take` event.
// Joined via `~part take` in store.kz; merged into the store module at load.
//
// STORE.TAKE — extract a row with ownership through the handle head
//
// std/store:take(game[r]) | item i |> …
//
// Swap-remove (legal: position is never identity — O2/O10.iii). Compiles to
// `__store_take_<s>(row: <handle>)`; the `| item {fields}` branch carries
// the row out. Obligation wiring (a taken row must be consumed or given
// back — 690_007/690_015) rides on the take event's phantom.
~[keyword|comptime|transform] pub tor take {
expr: Expression,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult