Check if an rstack is empty

Share:

Description

Check if an rstack is empty.

Usage

1
2
## S3 method for class 'rstack'
empty(x, ...)

Arguments

x

the rstack to check.

...

additional arguments to be passed to or from methods (ignored).

Details

Runs in O(1) time.

Value

logical vector of length 1.

See Also

empty for the generic function that can be used on rstacks, rdeques, and rpqueues.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.