The same for minus
This commit is contained in:
parent
3576ddaf31
commit
520765abb9
@ -104,6 +104,9 @@ interface Field<T> : Ring<T> {
|
|||||||
|
|
||||||
operator fun T.plus(b: Number) = this.plus(b * one)
|
operator fun T.plus(b: Number) = this.plus(b * one)
|
||||||
operator fun Number.plus(b: T) = b + this
|
operator fun Number.plus(b: T) = b + this
|
||||||
|
|
||||||
|
operator fun T.minus(b: Number) = this.minus(b * one)
|
||||||
|
operator fun Number.minus(b: T) = -b + this
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user