We have a function printIncrement that prints the incrementation of an Int if it is positive:
fun printIncrement(value: Int?) {
val x: Int? = value
if (x.isPositive()) {
println(x + 1)
} else {
println("Can't increment a negative value")
}
}
Complete the provided function isPositive to make it verify if an Int is positive and not null. Also, it must contain a contract that implies that when the function returns true, the receiver is not null.