toNonZeroInt

Deprecated

Use the Int.toNonZeroIntOrThrow function instead.

Replace with

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

Returns this value as a NonZeroInt, or throws an NonZeroInt.ConstructionError if this value equals zero.