toPositiveInt

@SinceKotoolsTypes(version = "4.0")
fun Int.toPositiveInt(): Result<PositiveInt>

Returns this integer as a PositiveInt, or returns an IllegalArgumentException if this integer is strictly negative.