toNegativeInt

@SinceKotoolsTypes(version = "1.1")
fun Int.toNegativeInt(): Result<NegativeInt>

Returns this integer as an encapsulated NegativeInt, or returns an encapsulated IllegalArgumentException if this integer is strictly positive.