Learn R Programming

rstackdeque (version 1.1.1)

empty.rstack: Check if an rstack is empty

Description

Check if an rstack is empty.

Usage

"empty"(x, ...)

Arguments

x
the rstack to check.
...
additional arguments to be passed to or from methods (ignored).

Value

logical vector of length 1.

Details

Runs in $O(1)$ time.

See Also

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