leftSideNumberOperationFunction

open fun leftSideNumberOperationFunction(operation: String): (left: Number, T) -> T

Dynamically dispatches a binary operation with the certain name with numeric first argument.

Implementations must fulfil the following requirements:

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

  2. Equivalence to leftSideNumberOperation: for any a, b, and c, leftSideNumberOperationFunction(a)(b, c) == leftSideNumberOperation(a, b).

Return

an operation.

Parameters

operation

the name of operation.

Sources

Link copied to clipboard