as.rdeque.default: Default method for converting to an rdeque

Description Usage Arguments Details Value See Also

View source: R/as.rdeque.default.R

Description

Default method for converting to an rdeque.

Usage

1
2
## Default S3 method:
as.rdeque(x, ...)

Arguments

x

the input to convert to an rdeque

...

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

Details

Elements from the input (of any type) are first converted to a list with as.list, after this an rdeque of the appropriate size is created holding the elements. The element at x[[1]] becomes the front of the rdeque. Runs in time O(n), in the size of the number of elements contained in the resulting rdeque.

Value

a filled rdeque.

See Also

rdeque for info about rdeques, as.rdeque for the generic function.


rstackdeque documentation built on May 2, 2019, 4:15 a.m.