toNegativeInt

@SinceKotools(project = Project.Types, version = "3.2")
fun Int.toNegativeInt(): Result<NegativeInt>

Returns this integer as a NegativeInt, or IllegalArgumentException if this integer is strictly positive.