Functions#
Declare and call functions, then pass them as values.
| Concept | What you will learn |
|---|---|
| Declarations and calls | Write explicit signatures and evaluate arguments in source order. |
| Native functions | Declare a function implemented by linked native code with extern fn. |
| Function values and closures | Pass functions as values and understand borrowed and owned captures and resource references. |
| Effects and permissions | Keep a function pure unless a comment permits what it reaches, and see its effects in lint, hover and review. |