inline fun <T, R> List<T>.foldRight( initial: R, operation: (T, acc: R) -> R ): R
inline fun <T, R> Array<out T>.foldRight( initial: R, operation: (T, acc: R) -> R ): R
inline fun <R> ByteArray.foldRight( initial: R, operation: (Byte, acc: R) -> R ): R
inline fun <R> ShortArray.foldRight( initial: R, operation: (Short, acc: R) -> R ): R
inline fun <R> IntArray.foldRight( initial: R, operation: (Int, acc: R) -> R ): R
inline fun <R> LongArray.foldRight( initial: R, operation: (Long, acc: R) -> R ): R
inline fun <R> FloatArray.foldRight( initial: R, operation: (Float, acc: R) -> R ): R
inline fun <R> DoubleArray.foldRight( initial: R, operation: (Double, acc: R) -> R ): R
inline fun <R> BooleanArray.foldRight( initial: R, operation: (Boolean, acc: R) -> R ): R
inline fun <R> CharArray.foldRight( initial: R, operation: (Char, acc: R) -> R ): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/fold-right.html