Description Usage Arguments Details Value See Also Examples
Returns the first n elements of an rpqueue as an rpqueue, or all of the elements
if length(x) < n
.
1 2 |
x |
rpqueue to get the head/top of. |
n |
number of elements to get. |
... |
arguments to be passed to or from other methods (ignored). |
Runs in O(n) time (in the size of the number of elements requested).
an rpqueue
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.