deque? : any -> boolean tests if an object is a deque deque-length : deque -> non-negative integer returns the number of items in the deque
make-deque : () -> deque returns a deque containing to itemsdeque-empty? : deque -> boolean returns true if there are no items in the deque, false otherwiseenqueue-front : deque any -> deque returns a new deque with the inserted item at the frontenqueue-rear : deque any -> deque returns a new deque with the inserted item at the reardequeue-front : deque -> any queue returns two values, the item at the front of the deque, and a new deque containing all the other items raises an error if the deque is emptydequeue-rear : deque -> any queue returns two values, the item at the rear of the deque, and a new deque containing all the other items raises an error if the deque is emptylist->deque : listof(any) -> deque returns a deque containing all of the elements in the list. The order of the elements in the deque is the same as the order of the elements in the list.deque->list : deque -> listof(any) returns a list containing all the elements of the deque. The order of the elements in the list is the same as the order they would be dequeued from the front of the deque.