foundation
foundation copied to clipboard
Additive.scale default implementation does not conform to the API
In Basement.Numerical.Additive the class provides a default implementation for scale. But because of the Enum n constraint, it is not general enough and any attempt to use this implementation in an instance will not compile.
- Solution A is to change the API to add
Enum n - Solution B is to change the implementation and do without
Enum n, but withNaturalconversion - Solution C is to change both API and implementation to use
(IsNatural n, Enum n, IDivisible n)like inMultiplicative(double-add method)