as Operator
fun String.asOperator(precedence: Int, leftAssociative: Boolean = true, operation: (Double, Double) -> Double): KthOperator
Helper function to create a KthOperator using the receiving String as key.
Return
the created KthOperator
Parameters
precedence
the operator precedence
left Associative
whether the operator is left associative
operation
the operator operation