toPositiveIntOrThrow

@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
fun Int.toPositiveIntOrThrow(): PositiveInt

Returns this value as a PositiveInt, or throws an IllegalArgumentException if this value is strictly negative.