TYPE
unit
unitA 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(...) { ... }
is equivalent to:
function f(...): unit { ... }
Since
0.6.0
Methods
© 2026 Chromia