reduce Right Or Null
inline fun ComplexFloatArray.reduceRightOrNull(operation: (ComplexFloat, acc: ComplexFloat) -> ComplexFloat): ComplexFloat?
Content copied to clipboard
inline fun ComplexDoubleArray.reduceRightOrNull(operation: (ComplexDouble, acc: ComplexDouble) -> ComplexDouble): ComplexDouble?
Content copied to clipboard
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
Returns null
if the array is empty.
Parameters
operation
function that takes an element and current accumulator value, and calculates the next accumulator value.