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