nonZero

@SinceKotoolsTypes(version = "1.0")
val Int.nonZero: NonZeroInt

Deprecated

Use toNonZeroInt() instead.

Replace with

import kotools.types.number.toNonZeroInt
toNonZeroInt()

Transforms the current Int to a NonZeroInt, or throws an IllegalArgumentException if the current value is 0.