printer: Printing Deques, Stacks, and Queues

View source: R/print.r

printerR Documentation

Printing Deques, Stacks, and Queues

Description

Printing Deques, Stacks, and Queues

Usage

## S3 method for class 'deque'
print(x, ..., output = "summary")

## S3 method for class 'stack'
print(x, ..., output = "summary")

## S3 method for class 'queue'
print(x, ..., output = "summary")

Arguments

x

A queue, stack, or deque.

...

Unused.

output

A character string; determines what exactly is printed. Options are "summary", "truncated", and "full".

Details

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.


wrathematics/dequer documentation built on March 17, 2022, 6:38 p.m.