copyToArray

fun copyToArray(provider: (size: Int, init: (i: Int) -> T) -> Array<T>): Array<T>

Returns the contents of this deque as an array.

Return

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