Unit
A type that signifies an empty result. Unit
is the return type for functions and actions for which an explicit return
type is omitted.
A Unit
value can be created explicitly
var s: Unit = {};
or implicitly
function unitReturn() returns Unit -> {
return; // Implicit Unit.
};