Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Functions

def my_function (param: Int) Int {
    return param * 9
}

equiv to

let my_function = fn (param: Int) -> param * 9

Note that let can only be used inside a function definition, so this definition cannot be used at the top level