✓
Passing This code compiles and runs correctly.
Code
// PIN — store write blocks support koru's mandatory PUNNING:
// `insert(todos) { label }` = "column label <- binding label".
import std/io
import std/string
import std/store
std/store:new(todos, capacity: 4) { label: *std/string:String<std/string:instance!> }
! inserted { label } |> std/string:read(s: label): t |> std/io:print.ln("added {{ t:s }}")
std/string:from-page(text: "hi")
| ok a |> std/string:take(s: a): label |> std/store:insert(todos) { label }
| row _ |> _
| err _ |> _
Actual
added hi
Expected output
added hi
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: todos, capacity: 4, source: label: *std/string:String<std/string:instance!>)
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "hi")
Test Configuration
MUST_RUN