Functions always have a return type.

There is no return keyword, instead, they implicitly return whatever they evaluate to (the result of the last expression is returned).

fn MyFunctionName(MyValue1: Int, MyValue2: Int) -> Int {
  MyValue1 + MyValue2
}

Calling functions

Using argument names

You can call functions and use the functions argument names if you wish, in any order, e.g.

MyFunctionName(MyValue1: 12, MyValue2: 34)
 
MyFunctionName(MyValue2: 34, MyValue1: 12)