toPositiveInt

Deprecated

Use the Int.toPositiveIntOrThrow function instead.

Replace with

import kotools.types.number.toPositiveIntOrThrow
this.toPositiveIntOrThrow()

Returns this value as a PositiveInt, or throws an PositiveInt.ConstructionError if this value is strictly negative.