You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PosInt(1) // compilesPosInt(0) // compile-time errorPosInt(-1) // compile-time errorPosInt.from(123)
// Either[String, PosInt] = Right(PosInt(123))PosInt.from(-123)
// Either[String, PosInt] = Left(Invalid value: -123. It must be a positive Int)PosInt.unsafeFrom(999)
// PosInt = PosInt(999)PosInt.unsafeFrom(-999)
// IllegalArgumentException(Invalid value: -999. It must be a positive Int) is thrown
The text was updated successfully, but these errors were encountered:
Summary
[core] Add
numeric.PosInt
Version
unreleased
Description
The text was updated successfully, but these errors were encountered: