unaryOperationFunction

open override fun unaryOperationFunction(operation: String): (arg: MST) -> MST.Unary(source)

Dynamically dispatches a unary operation with the certain name.

Implementations must fulfil the following requirements:

  1. If operation is not defined in the structure, then the function throws kotlin.IllegalStateException.

  2. Equivalence to unaryOperation: for any a and b, unaryOperationFunction(a)(b) == unaryOperation(a, b).

Return

an operation.

Parameters

operation

the name of operation.