W3cubDocs

/Kotlin

scanReduce

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalStdlibApi inline fun <S, T : S> Array<out T>.scanReduce(
    operation: (acc: S, T) -> S
): List<S>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun ByteArray.scanReduce(
    operation: (acc: Byte, Byte) -> Byte
): List<Byte>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun ShortArray.scanReduce(
    operation: (acc: Short, Short) -> Short
): List<Short>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun IntArray.scanReduce(
    operation: (acc: Int, Int) -> Int
): List<Int>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun LongArray.scanReduce(
    operation: (acc: Long, Long) -> Long
): List<Long>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun FloatArray.scanReduce(
    operation: (acc: Float, Float) -> Float
): List<Float>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun DoubleArray.scanReduce(
    operation: (acc: Double, Double) -> Double
): List<Double>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun BooleanArray.scanReduce(
    operation: (acc: Boolean, Boolean) -> Boolean
): List<Boolean>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun CharArray.scanReduce(
    operation: (acc: Char, Char) -> Char
): List<Char>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi inline fun <S, T : S> Iterable<T>.scanReduce(
    operation: (acc: S, T) -> S
): List<S>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes inline fun UIntArray.scanReduce(
    operation: (acc: UInt, UInt) -> UInt
): List<UInt>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes inline fun ULongArray.scanReduce(
    operation: (acc: ULong, ULong) -> ULong
): List<ULong>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes inline fun UByteArray.scanReduce(
    operation: (acc: UByte, UByte) -> UByte
): List<UByte>
Deprecated: Use runningReduce instead.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes inline fun UShortArray.scanReduce(
    operation: (acc: UShort, UShort) -> UShort
): List<UShort>
Deprecated: Use runningReduce instead.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/scan-reduce.html