unaryOperationFunction

open override fun unaryOperationFunction(operation: String): (arg: Buffer<T>) -> Buffer<T>

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.

Sources

common source
Link copied to clipboard