Input | A list of elements. |
Output | A queue containing the list of elements with the first element at the beginning of the queue. |
Input | A queue and an element. |
Output | A new queue with the element added to the end. |
Input | A queue. |
Output | A new queue with the element at the beginning removed. |
Input | A queue. |
Output | The element at the beginning of the queue. |
Input | A queue. |
Output | True if the queue is empty, false otherwise. |
Input | A queue. |
Output | True if the queue is not empty, false otherwise. |
Input | A queue. |
Output | The number of elements in the queue. |
Input | A queue. |
Output | A new queue with the elements in reverse order. |