toArray

fun toArray(): Array<T>

Returns the contents of this deque as an array.

Return

An array of size size containing the contents of this deque.