empty.rpqueue {rstackdeque}R Documentation

Check if an rpqueue is empty

Description

Check if an rpqueue is empty.

Usage

## S3 method for class 'rpqueue'
empty(x, ...)

Arguments

x

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


[Package rstackdeque version 1.1.1 Index]