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

return

Scope
global
action
function
policy/recall
seal/open
finish
finish function
function foo() int {
    let x = unwrap query FooCount[deviceID: myId]
    return x.count
}

return evaluates an expression and returns the value from the function. The value returned must have the type specified in the function signature.