foldRight

inline fun <R> foldRight(initial: R, operation: (element: Float, acc: R) -> R): R(source)

Accumulates values, starting with initial, and applying operation to each element in the FloatList in reverse order.

Parameters

initial

The value of acc for the first call to operation or return value if there are no elements in this list.

operation

function that takes an element and the current accumulator value, and calculates the next accumulator value.