✓
Passing This code compiles and runs correctly.
Code
// NESTING SWEEP — capture under POSITION 1: scalar branch.
// capture fold (increments a counter once) nested under `| count _`.
import std/io
import std/args
std/args:count(): _ |> capture { n: 0[i64] }
! as acc |> captured { n: acc.n + 1 }
| captured r |> std/io:print.ln("n={{ r.n:d }}")
Actual
n=1
Expected output
n=1
Flows
flow ~count click a branch to expand · @labels scroll to their anchor
count
Test Configuration
MUST_RUN