✓
Passing This code compiles and runs correctly.
Code
import std/kernel
import std/io
std/kernel:shape(Body) {
mass: f64,
}
std/kernel:init(Body) {
{ mass: 1.0 },
{ mass: 2.0 },
}
| kernel k |> std/kernel:pairwise {
k.mass += k.other.mass
}
| computed c |> std/io:print.blk {
done, mass[0]={{ c[0].mass:f }}
}
Actual
done, mass[0]=3
Expected output
done, mass[0]=3
Flows
flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Body, source: mass: f64,)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: Body, source: { mass: 1.0 },
{ mass: 2.0 },)
Test Configuration
MUST_RUN