add

fun add(value: Float)(source)

Adds value to the end of this deque. Alias for addLast.


fun add(index: Int, value: Float)(source)

Inserts value at index. Elements may be shifted to make room for the new element.

Throws

if index is out of bounds 0, size.