021 multiline source

✓ 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
    }

~std.io:print.ln("done")
input.kz

Expected Output

done

Test Configuration

MUST_RUN