Closed LVMVRQUXL closed 1 year ago
Implement the following operations for improving the creation of a NonZeroInt type:
NonZeroInt
inline fun Int.toNonZeroIntOrElse(onFailure: (IllegalArgumentException) -> NonZeroInt): NonZeroInt = TODO() fun Int.toNonZeroIntOrNull(): NonZeroInt? = TODO() fun Int.toNonZeroIntOrThrow(): NonZeroInt = TODO()
toNonZeroIntOrElse
toNonZeroIntOrNull
toNonZeroIntOrThrow
Work in progress
Description
Implement the following operations for improving the creation of a
NonZeroInt
type:Checklist
toNonZeroIntOrElse
function.toNonZeroIntOrNull
function.toNonZeroIntOrThrow
function.Work in progress
section in changelog.