Merge pull request #224 from mipt-npm/commandertvis/issue223

Fix #223
This commit is contained in:
Alexander Nozik 2021-03-10 19:23:13 +03:00 committed by GitHub
commit 5c2f15da04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}