unit top-level constant
Unit
const unit
Used instead of void
as a return statement for a function when no value is to be returned.
Read this article
to understand why it is better to not use void
and use Unit instead.
Implementation
const unit = Unit._unit;