 
      
      queue::toarray()Create an array containing all of the elements in the Queue
queue::toarray()There are no parameters.
array — Returns an array containing all of the elements
import adt/queue
 
queue = queue()
 
queue.push(10)
queue.push(12)
queue.push(8)
 
queue.toarray()   ' Returns [10, 12, 8]