Applies a given ExpressionBiFunction to a sequence of Expression instances and returns a corresponding Expression based on the sequence's contents.
Applies a given ExpressionBiFunction to a sequence of Expression instances and returns a corresponding Expression based on the sequence's contents.
Value parameters
f
The ExpressionBiFunction used to combine or process the given expressions.
xs
The sequence of Expression instances to which the function is applied. The sequence must not be empty.
Attributes
Returns
An Expression resulting from the specified processing: - If the sequence is empty, an IllegalArgumentException is thrown. - If the sequence contains a single element, that element is returned. - If the sequence contains two elements, a BiFunction expression is returned. - Otherwise, an Aggregate expression is created from the sequence.