-
Notifications
You must be signed in to change notification settings - Fork 1
Function
Edward Palmer edited this page Jan 4, 2025
·
2 revisions
Functions in Eucleia are defined using the func keyword. All function arguments must have a type declared explicitly (unlike other interpreted languages such as Python!). No return type currently can be specified which will be rectified later.
A simple function which uses the built-in print function to print the arguments.
func mySimpleFunction(int a, float b, string c)
{
print(a, b, c);
}
mySimpleFunction(1, 2.5, "hello!");