Printing Deques, Stacks, and Queues
# S3 method for deque
print(x, ..., output = "summary")# S3 method for stack
print(x, ..., output = "summary")
# S3 method for queue
print(x, ..., output = "summary")
A queue, stack, or deque.
Unused.
A character string; determines what exactly is printed. Options are "summary", "truncated", and "full".
If output=="summary"
, then just a simple representation is printed.
If output=="truncated"
, then the first 5 items will be
printed.
If output=="full"
then the full data structure will be printed.