✓
Passing This code compiles and runs correctly.
Code
// scan over input with zero matches: the `!` branch never fires, `| done` runs
// exactly once. Pins the empty-stream + done path.
import std/io
import std/regex
std/regex:scan(input: "no digits here")
! `[0-9]+` n |> std/io:print.ln("n={{ n:s }}")
| done |> std/io:print.ln("done")
Actual
done
Expected output
done
Flows
flow ~scan click a branch to expand · @labels scroll to their anchor
scan (input: "no digits here")
Test Configuration
MUST_RUN