cases

fun <Left, Right, Out> cases(left: (Left & Any, Interval) -> Out, right: (Right & Any, Interval) -> Out, combine: (Left & Any, Right & Any, Interval) -> Out): NullBinaryOperation<Left, Right, Out>

Constructs an operation from three different cases:

  • when only the left operand is present

  • when only the right operand is present

  • when both operands are present