Queue2: A queue implemented entirely in R

Description Usage Arguments

View source: R/queue.R

Description

A Queue2 object is backed by a list, which is used in a circular manner. All manipulation is done in R, without calling out to any compiled code. The backing list will grow or shrink as the queue changes in size.

Usage

1
Queue2(init = 20)

Arguments

init

Initial size of the list that backs the queue. This is also used as the minimum size of the list; it will not shrink any smaller.


wch/qstack documentation built on May 4, 2019, 2:02 a.m.