binaryOperationFunction
open override fun binaryOperationFunction(operation: String): (left: MST, right: MST) -> MST.Binary(source)
Dynamically dispatches a binary operation with the certain name.
Implementations must fulfil the following requirements:
If operation is not defined in the structure, then the function throws kotlin.IllegalStateException.
Equivalence to binaryOperation: for any
a
,b
, andc
,binaryOperationFunction(a)(b, c) == binaryOperation(a, b, c)
.
Return
an operation.
Parameters
operation
the name of operation.