type
void
void
void is the absence of a value. It appears as the return type of a function that runs for its effect and hands nothing back — function reset_score() -> void { … }. Such a function is called as a statement, not used in an expression, and a bare return (with no value) leaves it early. Use void whenever a helper mutates program state, draws, or spawns rather than computing a result to return.
Example
function reset_score() -> void {
score = 0
return
}