Functions
A function groups a sequence of statements under a name so it can be invoked repeatedly. Rux supports several kinds of functions, each covered in a dedicated chapter:
| Kind | Description |
|---|---|
| Declaration | Declaring functions, parameters, and return types |
| Variadic | Functions that accept any number of arguments |
| Generic | Functions parameterized over types |
| Assembler | Functions whose body is written in assembly |
| Main | The program entry point |
See Also
- Methods — functions attached to a type with
extend - Function Type Aliases — naming a function signature
- Statements — the control flow that makes up a function body