unit
type unit
A type with no member values, much like void
in other languages.
Typically used as a return type for functions where no return value is required. Indeed, when a function is declared without a specified return type, the return type is implicitly unit
. In other words, the function definition:
function f(...) { ... }
Content copied to clipboard
is equivalent to:
function f(...): unit { ... }
Content copied to clipboard
Since
0.6.0