Standard functions

This is a list of all standardized functions and what they do.

Note

These are all available in the stdlib module

standard functions

function

description

println(x: i32|strlit|f32|i64|f64)

Prints to the standard output with a newline.

print(x: i32|strlit|f32|i64|f64)

Prints to the standard output

printf(x: strlit, ...)

The printf function provided by the system. May not be available on all platforms.

puts(x: strlit)

Prints to the standard output

sleep(seconds: i32)

System sleep in seconds

usleep(microsec: i32)

System sleep in microseconds

exit(code: i32)

exits the application early. exit(1) is used for an early exit in case of an exception at runtime.

Note

These are all available in the math module

TO BE COMPLETED

math functions

function

description