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
The Number package defines sum(), difference(), product(), quotient(), and remainder() functions. But these functions are all binary and are not useful in the Maybe, Result, or Promise chaining.
Add unary signatures for these functions (and corresponding reverse functions, if needed):
sum(augend: number): Unary<number, number>
increment(addend: number = 1): Unary<number, number> (consider the difference with sum(number).
The Number package defines
sum()
,difference()
,product()
,quotient()
, andremainder()
functions. But these functions are all binary and are not useful in theMaybe
,Result
, orPromise
chaining.Add unary signatures for these functions (and corresponding reverse functions, if needed):
sum(augend: number): Unary<number, number>
increment(addend: number = 1): Unary<number, number>
(consider the difference withsum(number)
.difference(minuend: number): Unary<number, number>
decrement(subtrahend: number = 1): Unary<number, number>
product(multiplier: number): Unary<number, number>
quotient(dividend: number): Unary<number, number>
quotient2(divisor: number): Unary<number, number>
(consider a better name)remainder(dividend: number): Unary<number, number>
remainder(divisor: number): Unary<number, number>
(consider a better name)powerOf(exponent: number): Unary<number, number>
(see AddMath
function wrappers to avoidNaN
#20)Additional new functions:
decrement(minuend: number, subtrahend: number = 1): number
increment(augend: number, addend: number = 1): number
The text was updated successfully, but these errors were encountered: