✓
Passing This code compiles and runs correctly.
Code
// Nested `for` / `! each` where the INNER loop sits under a branch arm of an
// `if`, inside a module tor. No synthesizing library.
//
// 115_008 pins that a directly-nested loop in a module gets distinct capture
// names; this pins the same question when a branch arm intervenes between the
// two loops, which is the shape every real sieve has.
import app/lib
app/lib:run()
Supporting Files
import std/io
pub tor run {}
run = for(0..2)
! each i |> if(i == 1)
| then |> for(0..2)
! each j |> std/io:print.ln("{{ i:d }}{{ j:d }}")
| else |> _
Actual
10
11
Expected output
10
11
Flows
flow ~run click a branch to expand · @labels scroll to their anchor
run
Test Configuration
MUST_RUN