unaryOperation

open override fun unaryOperation(operation: String, arg: T): T(source)

Dynamically invokes 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 unaryOperationFunction: i.e., for any a and b, unaryOperationFunction(a)(b) == unaryOperation(a, b).

Return

a result of operation.

Parameters

operation

the name of operation.

arg

the argument of operation.