envzn
0.8 · beta · not released

Library / Numbers / Numeric contracts / Arithmetic

INTERFACE

Arithmetic

Arithmetic[T] — the contract that T is additive: an add(T), subtract(T), and negate(), each closed over T. It is a named constraint (e.g. for generic bounds), NOT an operator-derivation mechanism.

Methods 3

METHOD add(REFERENCE T other) RETURNS T
reads
METHOD subtract(REFERENCE T other) RETURNS T
reads
METHOD negate() RETURNS T
reads