The array and matrix data types have been removed from Mufi-Lang as of version 0.8.0.
We are working on having fvec be the default array type for numerical types as it
can take advantage of SIMD instructions and is more memory efficient.
The matrix type will return once we have done the research of the best implementation
and build it to take advantage of SIMD operations.
Operators
Operator
Description
+
Addition
-
Subtraction
*
Multiplication
/
Division
%
Modulus
==
Equality
!=
Inequality
>
Greater than
<
Less than
>=
Greater than or equal to
<=
Less than or equal to
!
Logical NOT
and
Logical AND
or
Logical OR
+=
Addition Assignment
-=
Subtraction Assignment
*=
Multiplication Assignment
/=
Division Assignment
++
Increment
—
Decrement
Variables
Variables are used to store data, and are declared using the var keyword. You may
choose to initialize the variable with a value or not. If you do not initialize the
variable, it will be initialized with nil.
Global and Local Scopes
Variables can be declared in the global scope or local scope. Global variables are declared outside of any function and can be accessed from anywhere in the program.
Local variables are declared inside a function and can only be accessed within that function.