set

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

Sets the nybble at the given index to the given value.

Parameters

index

The zero-based nybble index. Even indices correspond to low nybbles, and odd indices correspond to high nybbles.

value

The value, guaranteed to be in 0,15.

Throws