All examples
Language

Hello, Aner

Start with scalar arithmetic in a complete Aner program.

Download .aner source
hello.aner
fn main() -> Unit {
    let x: Float64 = 10.0;
    let y: Float64 = 5.0;
    print(x + y);
}
// Expected output:
// 15.0

Make it your experiment.

With Aner installed, save this program as examples/hello.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.

Terminal
aner check examples/hello.aner
aner run examples/hello.aner

The aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.

Iris and Wine are teaching datasets with their own attribution. Example outcomes are not comparative benchmarks or evidence of clinical validity.

Dataset sources & attribution
Install Aner