Module built_in_arithmetic

Source
Expand description

Suiron’s arithmetic functions: add, subtract, multiply, divide.

The functions defined in this module support Suiron’s built-in arithmetic functions.
They are called from unify_sfunction() in built_in_functions.rs.

Enums§

SNumber
In Suiron, a number can be an SInteger (i64) or an SFloat (f64).

Functions§

evaluate_add
Add arguments together.
evaluate_divide
Divide the first argument by the following arguments.
evaluate_multiply
Multiply arguments together.
evaluate_subtract
Subtract arguments from the first argument in a list.