public interface BinaryOperator
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object left,
Lazy right)
Applies the binary operator to the given operands.
|
java.lang.Object apply(java.lang.Object left,
Lazy right)
throws CarrotException
Note that the right operand is passed as a Lazy because some operands may not need to evaluate it,
depending on the left operand (e.g. boolean `and` and `or` operators).
left - The left operand.right - The Lazy right operand.CarrotException - if there's any error applying the operator.