types
/
kotools.types.number
/
StrictlyNegativeInt
/
Companion
/
orNull
common
or
Null
infix
fun
orNull
(
value
:
Int
)
:
StrictlyPositiveInt
?
Content copied to clipboard
Returns the
value
as a
StrictlyPositiveInt
, or returns
null
if the
value
equals 0.