combineOrNull

Constructs an operation that combines the operands in some way if they are both present, and produces null if either operand is null.

Parameters

f

operation to be invoked when both operands are present.