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