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