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(...) { ... }

is equivalent to:

function f(...): unit { ... }

Since

0.6.0

Constructors

Link copied to clipboard
pure constructor()

Does nothing, and returns nothing.