fill

fun <T> Array<T>.fill(
    element: T,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun ByteArray.fill(
    element: Byte,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun ShortArray.fill(
    element: Short,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun IntArray.fill(
    element: Int,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun LongArray.fill(
    element: Long,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun FloatArray.fill(
    element: Float,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun DoubleArray.fill(
    element: Double,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun BooleanArray.fill(
    element: Boolean,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

fun CharArray.fill(
    element: Char,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

Fills original array with the provided value.

inline actual fun <T> MutableList<T>.fill(value: T) (source)

Platform and version requirements: Kotlin 1.2

Fills the list with the provided value.

Each element in the list gets replaced with the value.