toNonZeroInt

@SinceKotoolsTypes(version = "4.0")
fun Int.toNonZeroInt(): Result<NonZeroInt>

Returns this integer as a NonZeroInt, or returns an IllegalArgumentException if this integer equals zero.