Learn R Programming

rstackdeque (version 1.1.1)

empty.rpqueue: Check if an rpqueue is empty

Description

Check if an rpqueue is empty.

Usage

"empty"(x, ...)

Arguments

x
the rpqueue 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.