kotools / libraries

Multiplatform libraries for expressive programming with Kotlin.
https://kotools.github.io/libraries
MIT License
0 stars 0 forks source link

Overload the `toNegativeInt` function #123

Closed LVMVRQUXL closed 1 year ago

LVMVRQUXL commented 1 year ago

Description

Overload the toNegativeInt function with the following operations:

fun StrictlyNegativeInt.toNegativeInt(): NegativeInt = TODO()

Checklist

LVMVRQUXL commented 1 year ago

The following operations will not be implemented:

// Can be replaced by ExplicitInt.toInt().toNegativeInt()
fun NonZeroInt.toNegativeInt(): Result<NegativeInt> = TODO()
fun PositiveInt.toNegativeInt(): Result<NegativeInt> = TODO()
LVMVRQUXL commented 1 year ago

Done.