append

inline fun append(value: T)

Pushes the given value onto the back of this deque.

Example

val deque = dequeOf(1, 2, 3) // Deque{1, 2, 3}
deque.append(4) // Deque{1, 2, 3, 4}

Parameters

value

Value to push onto the back of this deque.