ubyteDequeOf

fun ubyteDequeOf(vararg values: UByte): UByteDeque

Deque of UBytes

Creates a new deque instance wrapping the given UByte values.

The returned deque will have a size and capacity equal to the number of values passed to this function.

Example

val deque = dequeOf(1, 2, 3, 4, 5)

deque // Deque{1, 2, 3, 4, 5}

Return

A new UByteDeque instance wrapping the given values.

Parameters

values

UByte values to pre-populate the new Deque with.