toPositiveInt

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

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