Std.Num
15 public declarations
- Add
A type whose values add.
- Div
A type whose values divide, answering `None` for a divisor of nought.
- Integer
A whole-number type that can cross the width-independent `BigInt`
- Mul
A type whose values multiply.
- One
A type with a multiplicative identity.
- product
&Array[T] -> Option[T] where T: One + MulEvery element multiplied together, or `None` for an empty collection.
- Rem
A type whose values have a remainder, answering `None` for a divisor of
- runningSum
&Array[T] -> Array[T] where T: Zero + AddEvery running total, one longer than the input.
- small
&T -> Int -> T where T: Zero + One + AddA whole number of the caller's type, built by repeated addition.
- spread
&Array[T] -> T -> T -> T where T: SubThe difference between the largest and the smallest, or `None` when empty.
- Sub
A type whose values subtract.
- sum
&Array[T] -> Option[T] where T: Zero + AddEvery element added together, or `None` for an empty collection.
- sumOr
&Array[T] -> T -> T where T: Zero + AddEvery element added together, with a caller-supplied value for empty.
- two
&T -> T where T: One + AddTwo, built from the identity rather than written, so it has whatever type
- Zero
A type with an additive identity.
