Functions
Functions are declared with the keyword
fn
When using arguments, you must declare data types.
By default functions return empty tuple (). If you want to return a value, return type must be specified after ->
Hello world
Passing arguments
Returning Values
Last updated