set

expect operator fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified, and in Kotlin/Wasm where a trap will be raised instead, unless -Xwasm-enable-array-range-checks compiler flag was specified when linking an executable.

Since Kotlin

1.0
actual operator fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, the behavior is unspecified

Since Kotlin

1.1
actual operator fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, throws an IndexOutOfBoundsException.

Since Kotlin

1.0
actual operator external fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, throws an IndexOutOfBoundsException.

Since Kotlin

1.3
actual operator fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, a trap will be raised unless -Xwasm-enable-array-range-checks compiler flag was specified when linking an executable. With the -Xwasm-enable-array-range-checks an IndexOutOfBoundsException will be thrown.

Since Kotlin

1.8
actual operator fun set(index: Int, value: Byte)(source)

Sets the array element at the given index to the given value.

This method can be called using the index operator:

array[index] = value

If the index is out of bounds of this array, a trap will be raised unless -Xwasm-enable-array-range-checks compiler flag was specified when linking an executable. With the -Xwasm-enable-array-range-checks an IndexOutOfBoundsException will be thrown.

Since Kotlin

1.8