This commit is contained in:
Iaroslav Postovalov 2021-03-10 22:40:43 +07:00
parent fe9334d570
commit 39b41cc2ae
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -188,7 +188,7 @@ public interface SpaceOperations<T> : Algebra<T> {
public operator fun Number.times(b: T): T = b * this
public override fun unaryOperationFunction(operation: String): (arg: T) -> T = when (operation) {
PLUS_OPERATION -> { arg -> arg }
PLUS_OPERATION -> { arg -> +arg }
MINUS_OPERATION -> { arg -> -arg }
else -> super.unaryOperationFunction(operation)
}